summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-01-14 13:32:44 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-01-14 13:32:44 +0000
commit8a21ccd8b559105890f7a5453ad77ef23ad5a091 (patch)
treee0f8e8049f00abdd39a10688c5de7b2253105917 /sys/arch
parent7977aca4b4b15662757e35623e69c246f00684eb (diff)
Halt secondary CPUs when shutting down or rebooting. This should prevent
occasional hangs during reboot. ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/machdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 05e402d3f11..47eb01af4fc 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.198 2011/01/04 17:59:14 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.199 2011/01/14 13:32:43 jsing Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
@@ -923,6 +923,10 @@ boot(int howto)
dumpsys();
doshutdownhooks();
+
+#ifdef MULTIPROCESSOR
+ hppa_ipi_broadcast(HPPA_IPI_HALT);
+#endif
}
/* in case we came on powerfail interrupt */
@@ -955,7 +959,7 @@ boot(int howto)
:: "r" (CMD_RESET), "r" (HPPA_LBCAST + iomod_command));
}
- for(;;); /* loop while bus reset is comming up */
+ for (;;) ; /* loop while bus reset is coming up */
/* NOTREACHED */
}