Module Name:    src
Committed By:   pooka
Date:           Tue Nov  3 18:22:16 UTC 2009

Modified Files:
        src/sys/rump/include/rump: rump.h
        src/sys/rump/librump/rumpkern: rump.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/rump/include/rump/rump.h
cvs rdiff -u -r1.129 -r1.130 src/sys/rump/librump/rumpkern/rump.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/include/rump/rump.h
diff -u src/sys/rump/include/rump/rump.h:1.32 src/sys/rump/include/rump/rump.h:1.33
--- src/sys/rump/include/rump/rump.h:1.32	Wed Oct 14 18:18:53 2009
+++ src/sys/rump/include/rump/rump.h	Tue Nov  3 18:22:16 2009
@@ -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>

Index: src/sys/rump/librump/rumpkern/rump.c
diff -u src/sys/rump/librump/rumpkern/rump.c:1.129 src/sys/rump/librump/rumpkern/rump.c:1.130
--- src/sys/rump/librump/rumpkern/rump.c:1.129	Sat Oct 24 11:36:59 2009
+++ src/sys/rump/librump/rumpkern/rump.c	Tue Nov  3 18:22:16 2009
@@ -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;
 

Reply via email to