Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser Start restoring the ability to run rump kern...
details: https://anonhg.NetBSD.org/src/rev/a0b6b5f0e518
branches: trunk
changeset: 782412:a0b6b5f0e518
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Nov 02 11:11:27 2012 +0000
description:
Start restoring the ability to run rump kernels on non-threading
hypervisors.
Step 1: make this compile again (it's not complete, but
at least it compiles).
diffstat:
lib/librumpuser/rumpuser_pth_dummy.c | 34 ++++++++--------------------------
1 files changed, 8 insertions(+), 26 deletions(-)
diffs (83 lines):
diff -r 11d33179c956 -r a0b6b5f0e518 lib/librumpuser/rumpuser_pth_dummy.c
--- a/lib/librumpuser/rumpuser_pth_dummy.c Fri Nov 02 08:36:13 2012 +0000
+++ b/lib/librumpuser/rumpuser_pth_dummy.c Fri Nov 02 11:11:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_pth_dummy.c,v 1.2 2011/05/23 20:49:08 joerg Exp $ */
+/* $NetBSD: rumpuser_pth_dummy.c,v 1.3 2012/11/02 11:11:27 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -25,9 +25,11 @@
* SUCH DAMAGE.
*/
+#include "rumpuser_port.h"
+
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: rumpuser_pth_dummy.c,v 1.2 2011/05/23 20:49:08 joerg Exp $");
+__RCSID("$NetBSD: rumpuser_pth_dummy.c,v 1.3 2012/11/02 11:11:27 pooka Exp $");
#endif /* !lint */
#include <sys/time.h>
@@ -58,20 +60,13 @@
int rumpuser_aio_head, rumpuser_aio_tail;
struct rumpuser_aio rumpuser_aios[N_AIOS];
-void donada(int);
-/*ARGSUSED*/
-void donada(int arg) {}
-void dounnada(int, int *);
-/*ARGSUSED*/
-void dounnada(int arg, int *ap) {}
-kernel_lockfn rumpuser__klock = donada;
-kernel_unlockfn rumpuser__kunlock = dounnada;
-
/*ARGSUSED*/
void
rumpuser_thrinit(kernel_lockfn lockfn, kernel_unlockfn unlockfn, int threads)
{
+ rumpuser__klock = lockfn;
+ rumpuser__kunlock = unlockfn;
}
/*ARGSUSED*/
@@ -85,7 +80,8 @@
/*ARGSUSED*/
int
-rumpuser_thread_create(void *(*f)(void *), void *arg, const char *thrname)
+rumpuser_thread_create(void *(*f)(void *), void *arg, const char *thrname,
+ int joinable, void **tptr)
{
fprintf(stderr, "rumpuser: threads not available\n");
@@ -109,13 +105,6 @@
}
void
-rumpuser_mutex_recursive_init(struct rumpuser_mtx **mtx)
-{
-
- rumpuser_mutex_init(mtx);
-}
-
-void
rumpuser_mutex_enter(struct rumpuser_mtx *mtx)
{
@@ -144,13 +133,6 @@
free(mtx);
}
-int
-rumpuser_mutex_held(struct rumpuser_mtx *mtx)
-{
-
- return mtx->v;
-}
-
void
rumpuser_rw_init(struct rumpuser_rw **rw)
{
Home |
Main Index |
Thread Index |
Old Index