summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-12-21 14:56:23 +0000
committerclaudio <claudio@openbsd.org>2010-12-21 14:56:23 +0000
commit8fc84024ea0e2794e47d9aeabdf05e218961a954 (patch)
tree49f94c3a30755a3a83472af24a914f67e202400f /sys/kern/init_main.c
parentdon't leak mbuf if padding failes; ok mikeb@ (diff)
downloadwireguard-openbsd-8fc84024ea0e2794e47d9aeabdf05e218961a954.tar.xz
wireguard-openbsd-8fc84024ea0e2794e47d9aeabdf05e218961a954.zip
Convert netisr to a normal soft interrupt instead of hanving MD code
for it. This makes the netisr a real C function which will help further development. No noticable performance change on i386 and amd64. With input from kettenis@ and miod@ additional OKs mikeb@ and henning@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 34beffbe642..61805f1e16c 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.171 2010/09/08 14:15:56 jsing Exp $ */
+/* $OpenBSD: init_main.c,v 1.172 2010/12/21 14:56:24 claudio Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -89,6 +89,7 @@
#include <net/if.h>
#include <net/raw_cb.h>
+#include <net/netisr.h>
#if defined(CRYPTO)
#include <crypto/cryptodev.h>
@@ -396,6 +397,7 @@ main(void *framep)
* until everything is ready.
*/
s = splnet();
+ netisr_init();
domaininit();
if_attachdomain();
splx(s);