Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Run rump_dev_init() where available.



details:   https://anonhg.NetBSD.org/src/rev/fa3bf444a492
branches:  trunk
changeset: 747237:fa3bf444a492
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Sep 06 20:54:19 2009 +0000

description:
Run rump_dev_init() where available.

diffstat:

 sys/rump/librump/rumpkern/Makefile.rumpkern |  6 +++---
 sys/rump/librump/rumpkern/rump.c            |  9 ++++++---
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (70 lines):

diff -r 5724b877a984 -r fa3bf444a492 sys/rump/librump/rumpkern/Makefile.rumpkern
--- a/sys/rump/librump/rumpkern/Makefile.rumpkern       Sun Sep 06 20:42:25 2009 +0000
+++ b/sys/rump/librump/rumpkern/Makefile.rumpkern       Sun Sep 06 20:54:19 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rumpkern,v 1.46 2009/06/02 23:28:53 pooka Exp $
+#      $NetBSD: Makefile.rumpkern,v 1.47 2009/09/06 20:54:19 pooka Exp $
 #
 
 .include "${RUMPTOP}/Makefile.rump"
@@ -60,8 +60,8 @@
 SHLIB_MAJOR=    0
 SHLIB_MINOR=    0
 
-CPPFLAGS+=     -I${RUMPTOP}/librump/rumpkern
-CPPFLAGS+=     -I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpvfs
+CPPFLAGS+=     -I${RUMPTOP}/librump/rumpkern -I${RUMPTOP}/librump/rumpvfs
+CPPFLAGS+=     -I${RUMPTOP}/librump/rumpnet -I${RUMPTOP}/librump/rumpdev
 CFLAGS+=       -Wno-pointer-sign
 AFLAGS+=       -D_LOCORE -Wa,-fatal-warnings
 
diff -r 5724b877a984 -r fa3bf444a492 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Sun Sep 06 20:42:25 2009 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Sun Sep 06 20:54:19 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.111 2009/09/04 12:27:09 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.112 2009/09/06 20:54:19 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.111 2009/09/04 12:27:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.112 2009/09/06 20:54:19 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -65,6 +65,7 @@
 #include "rump_private.h"
 #include "rump_net_private.h"
 #include "rump_vfs_private.h"
+#include "rump_dev_private.h"
 
 struct proc proc0;
 struct session rump_session = {
@@ -116,6 +117,7 @@
 void rump__unavailable() {}
 __weak_alias(rump_net_init,rump__unavailable);
 __weak_alias(rump_vfs_init,rump__unavailable);
+__weak_alias(rump_dev_init,rump__unavailable);
 
 void rump__unavailable_vfs_panic(void);
 void rump__unavailable_vfs_panic() {panic("vfs component not available");}
@@ -245,13 +247,14 @@
        module_init();
        sysctl_init();
        softint_init(&rump_cpu);
-       cold = 0;
        devsw_init();
        secmodel_start();
 
        /* these do nothing if not present */
        rump_vfs_init();
        rump_net_init();
+       rump_dev_init();
+       cold = 0;
 
        /* aieeeedondest */
        if (rump_threads) {



Home | Main Index | Thread Index | Old Index