diff options
| author | 2001-05-17 18:41:44 +0000 | |
|---|---|---|
| committer | 2001-05-17 18:41:44 +0000 | |
| commit | a7702d29a9cad36853de6d49d5b55c6965c48798 (patch) | |
| tree | 1e8a329717a14fbec4ac01c6a54898cb8ce255c0 /sys/kern/init_main.c | |
| parent | fix memory leak on ipv6 reass failure. sync with kame (diff) | |
| download | wireguard-openbsd-a7702d29a9cad36853de6d49d5b55c6965c48798.tar.xz wireguard-openbsd-a7702d29a9cad36853de6d49d5b55c6965c48798.zip | |
convert mbuf and cluster allocation to pool, mostly from NetBSD
okay art@ miod@
Diffstat (limited to 'sys/kern/init_main.c')
| -rw-r--r-- | sys/kern/init_main.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index bde4bd42c10..6a0e8ea168f 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.64 2001/05/16 12:49:45 art Exp $ */ +/* $OpenBSD: init_main.c,v 1.65 2001/05/17 18:41:44 provos Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -222,6 +222,13 @@ main(framep) disk_init(); /* must come before autoconfiguration */ tty_init(); /* initialise tty's */ cpu_startup(); + + /* + * Initialize mbuf's. Do this now because we might attempt to + * allocate mbufs or mbuf clusters during autoconfiguration. + */ + mbinit(); + cpu_configure(); /* Initialize sysctls (must be done before any processes run) */ @@ -339,9 +346,6 @@ main(framep) /* Start real time and statistics clocks. */ initclocks(); - /* Initialize mbuf's. */ - mbinit(); - #ifdef REAL_CLISTS /* Initialize clists. */ clist_init(); |
