diff options
author | 2017-03-06 10:48:16 +0000 | |
---|---|---|
committer | 2017-03-06 10:48:16 +0000 | |
commit | 641d2f096f6e21c4e54a3500ff091e258f7f303c (patch) | |
tree | a5819049e5ecf3890564643aff44f27631936b6c | |
parent | Move the guts of route_output() meesing with the routing table in their (diff) | |
download | wireguard-openbsd-641d2f096f6e21c4e54a3500ff091e258f7f303c.tar.xz wireguard-openbsd-641d2f096f6e21c4e54a3500ff091e258f7f303c.zip |
domaininit() doesn't need splnet().
At this stage the scheduler isn't setup, which means the 'softnet'
isn't running yet, so input packets aren't processed.
Prodded by a question from guenther@, ok bluhm@
-rw-r--r-- | sys/kern/init_main.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index faa74aa4244..b231ccbafb8 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.266 2017/02/12 04:55:08 guenther Exp $ */ +/* $OpenBSD: init_main.c,v 1.267 2017/03/06 10:48:16 mpi Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -191,7 +191,7 @@ main(void *framep) struct process *pr; struct pdevinit *pdev; quad_t lim; - int s, i; + int i; extern struct pdevinit pdevinit[]; extern void disk_init(void); @@ -403,12 +403,9 @@ main(void *framep) #endif /* CRYPTO */ /* - * Initialize protocols. Block reception of incoming packets - * until everything is ready. + * Initialize protocols. */ - s = splnet(); domaininit(); - splx(s); initconsbuf(); |