summaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-06 13:36:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-06 13:36:53 +0000
commitdce408d18a14842aa7836a626a151e98665f04e7 (patch)
treea3ddb948fd94211a9af9df05d8de6c60a2081605 /sys/kern/init_main.c
parent789e8c48d1472795faa6a959068b32a1749b315d (diff)
More sync to NetBSD.
- Use malloc/free instead of MALLOC/FREE for variable sized allocations. - Move the memory inheritance code to sys/mman.h and rename from VM_* to MAP_* - various cleanups and simplifications.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 6f671250c98..fcb3083fa05 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.79 2001/10/11 08:07:12 gluk Exp $ */
+/* $OpenBSD: init_main.c,v 1.80 2001/11/06 13:36:52 art Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -132,7 +132,6 @@ struct timeval runtime;
int main __P((void *));
void check_console __P((struct proc *));
void start_init __P((void *));
-void start_pagedaemon __P((void *));
void start_cleaner __P((void *));
void start_update __P((void *));
void start_reaper __P((void *));
@@ -407,7 +406,7 @@ main(framep)
cpu_set_kpc(initproc, start_init, initproc);
/* Create process 2, the pageout daemon kernel thread. */
- if (kthread_create(start_pagedaemon, NULL, NULL, "pagedaemon"))
+ if (kthread_create(uvm_pageout, NULL, NULL, "pagedaemon"))
panic("fork pagedaemon");
/* Create process 3, the reaper daemon kernel thread. */
@@ -604,14 +603,6 @@ start_init(arg)
}
void
-start_pagedaemon(arg)
- void *arg;
-{
- uvm_pageout();
- /* NOTREACHED */
-}
-
-void
start_update(arg)
void *arg;
{