Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump Add rump_boot_set/gethowto(), which can be called b...



details:   https://anonhg.NetBSD.org/src/rev/8edca1145a23
branches:  trunk
changeset: 748731:8edca1145a23
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Nov 03 18:22:16 2009 +0000

description:
Add rump_boot_set/gethowto(), which can be called before rump_init()
to control .... *tadaa* boothowto.

diffstat:

 sys/rump/include/rump/rump.h     |   7 +++++--
 sys/rump/librump/rumpkern/rump.c |  18 ++++++++++++++++--
 2 files changed, 21 insertions(+), 4 deletions(-)

diffs (60 lines):

diff -r acefa8113946 -r 8edca1145a23 sys/rump/include/rump/rump.h
--- a/sys/rump/include/rump/rump.h      Tue Nov 03 16:08:00 2009 +0000
+++ b/sys/rump/include/rump/rump.h      Tue Nov 03 18:22:16 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.h,v 1.32 2009/10/14 18:18:53 pooka Exp $  */
+/*     $NetBSD: rump.h,v 1.33 2009/11/03 18:22:16 pooka Exp $  */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -84,7 +84,10 @@
 _BEGIN_DECLS
 #endif
 
-int rump__init(int);
+int    rump_boot_gethowto(void);
+void   rump_boot_sethowto(int);
+
+int    rump__init(int);
 
 #ifndef _RUMPKERNEL
 #include <rump/rumpkern_if_pub.h>
diff -r acefa8113946 -r 8edca1145a23 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Tue Nov 03 16:08:00 2009 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Tue Nov 03 18:22:16 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.129 2009/10/24 11:36:59 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.130 2009/11/03 18:22:16 pooka Exp $ */
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.129 2009/10/24 11:36:59 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.130 2009/11/03 18:22:16 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -610,6 +610,20 @@
        return rv;
 }
 
+int
+rump_boot_gethowto()
+{
+
+       return boothowto;
+}
+
+void
+rump_boot_sethowto(int howto)
+{
+
+       boothowto = howto;
+}
+
 rump_sysproxy_t rump_sysproxy = rump_sysproxy_local;
 void *rump_sysproxy_arg;
 



Home | Main Index | Thread Index | Old Index