summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-26 22:40:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-06-26 22:40:01 +0000
commitfaf5f1c428343fb3b63d0d5c8e1f3281e5fb096a (patch)
treef68032641ab88713a1e6a1d4e8db85a94c44fa65 /sys/arch/mvme88k
parente4406dbd9a603957bda0912007302178f3920008 (diff)
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/mvme88k')
-rw-r--r--sys/arch/mvme88k/mvme88k/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c
index b44065b4c3e..878d4f239a3 100644
--- a/sys/arch/mvme88k/mvme88k/machdep.c
+++ b/sys/arch/mvme88k/mvme88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.243 2011/06/05 19:41:07 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.244 2011/06/26 22:40:00 deraadt Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -81,6 +81,7 @@
#include <dev/cons.h>
+#include <net/if.h>
#include <uvm/uvm.h>
#include "ksyms.h"
@@ -424,6 +425,7 @@ boot(howto)
else
printf("WARNING: not updating battery clock\n");
}
+ if_downall();
uvm_shutdown();
splhigh(); /* Disable interrupts. */