Support rumpkern components and rumpkern components depending on vfs init.

This commit is contained in:
pooka 2010-06-12 07:13:54 +00:00
parent fd847aaa33
commit 4df1419c47
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump.c,v 1.178 2010/06/10 21:40:42 pooka Exp $ */
/* $NetBSD: rump.c,v 1.179 2010/06/12 07:13:54 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.178 2010/06/10 21:40:42 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.179 2010/06/12 07:13:54 pooka Exp $");
#include <sys/systm.h>
#define ELFSIZE ARCH_ELFSIZE
@ -358,10 +358,15 @@ rump__init(int rump_version)
/* process dso's */
rumpuser_dl_bootstrap(add_linkedin_modules, rump_kernelfsym_load);
rump_component_init(RUMP_COMPONENT_KERN);
/* these do nothing if not present */
rump_vfs_init();
rump_net_init();
rump_dev_init();
rump_component_init(RUMP_COMPONENT_KERN_VFS);
cold = 0;
/* aieeeedondest */

View File

@ -1,4 +1,4 @@
/* $NetBSD: rump_private.h,v 1.51 2010/06/10 21:40:42 pooka Exp $ */
/* $NetBSD: rump_private.h,v 1.52 2010/06/12 07:13:54 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@ -64,6 +64,7 @@ enum rump_component_type {
RUMP_COMPONENT_DEV,
RUMP_COMPONENT_NET, RUMP_COMPONENT_NET_ROUTE, RUMP_COMPONENT_NET_IF,
RUMP_COMPONENT_VFS,
RUMP_COMPONENT_KERN, RUMP_COMPONENT_KERN_VFS,
RUMP_COMPONENT_MAX,
};
struct rump_component {