summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-07-11 10:10:45 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-07-11 10:10:45 +0000
commited35d53c890ae87b6cce86e7ed1a34f2fcdb74c0 (patch)
treee178ba138f4060cc442aad77c5ebfd986805eb21 /sys/arch/zaurus
parent89ca89bdf19df87b1480b0abc55f7c94502d4af4 (diff)
boot(9): Missing if_downall() on zaurus
zaurus's boot(9) is the only boot(9) which doesn't call if_downall(). Include sys/socket.h + net/if.h and call it. OK miod@
Diffstat (limited to 'sys/arch/zaurus')
-rw-r--r--sys/arch/zaurus/zaurus/zaurus_machdep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/zaurus/zaurus/zaurus_machdep.c b/sys/arch/zaurus/zaurus/zaurus_machdep.c
index 68397a3cb26..bb394b8d7dc 100644
--- a/sys/arch/zaurus/zaurus/zaurus_machdep.c
+++ b/sys/arch/zaurus/zaurus/zaurus_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_machdep.c,v 1.47 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: zaurus_machdep.c,v 1.48 2014/07/11 10:10:44 uebayasi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
@@ -130,6 +130,7 @@
#include <sys/device.h>
#include <dev/cons.h>
#include <dev/ic/smc91cxxreg.h>
+#include <sys/socket.h>
#include <machine/db_machdep.h>
#include <ddb/db_sym.h>
@@ -138,6 +139,8 @@
#include <sys/kgdb.h>
#endif
+#include <net/if.h>
+
#include <machine/bootconfig.h>
#include <machine/bus.h>
#include <machine/cpu.h>
@@ -311,6 +314,8 @@ boot(int howto)
if (!(howto & RB_NOSYNC))
bootsync(howto);
+ if_downall();
+
uvm_shutdown();
splhigh(); /* Disable interrupts. */
cold = 1;