summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-10 21:46:04 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-10 21:46:04 +0000
commit772a80c79188981e74651961c96c65117a0b46c3 (patch)
tree03fa5372b6a066940fc862cfc67d03e088209d9e /sys/arch/hppa
parentbaed53032561b8641613288804ac4719273fd74d (diff)
Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting or
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/machdep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 54b0f519434..b38152df010 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.225 2014/07/10 20:15:26 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.226 2014/07/10 21:46:02 mpi Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
@@ -919,10 +919,9 @@ boot(int howto)
}
if_downall();
- /* XXX probably save howto into stable storage */
-
uvm_shutdown();
splhigh();
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();