summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-06-26 22:39:58 +0000
committerderaadt <deraadt@openbsd.org>2011-06-26 22:39:58 +0000
commit7d9ca16684db66e81ecd45aa98c04620f2bf919d (patch)
tree93d28225936d2147e4e63b1bd34555b420cfcd51 /sys/arch/sparc
parentFirst stab at MSI support for vpci(4). Still a few rough edges, but seems (diff)
downloadwireguard-openbsd-7d9ca16684db66e81ecd45aa98c04620f2bf919d.tar.xz
wireguard-openbsd-7d9ca16684db66e81ecd45aa98c04620f2bf919d.zip
if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()
might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 7b6abc25661..4cfb2f1a775 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.135 2011/06/05 19:41:08 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.136 2011/06/26 22:40:00 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -62,6 +62,7 @@
#include <sys/sysctl.h>
#include <sys/extent.h>
+#include <net/if.h>
#include <uvm/uvm.h>
#include <dev/rndvar.h>
@@ -567,6 +568,7 @@ boot(howto)
printf("WARNING: not updating battery clock\n");
}
}
+ if_downall();
uvm_shutdown();
(void) splhigh(); /* ??? */