diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-30 13:46:18 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-30 13:46:18 +0000 |
commit | cfecb2e3803e8535b11d7f73d4537242c8d4d22c (patch) | |
tree | bc4a3bd6e04487ccbeb96304852e7cae161c10f9 /sys/arch/hppa64 | |
parent | d365054a04668d618738f402bfb204f1829a1764 (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/hppa64')
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index 174df297e43..10941b713d5 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.58 2014/04/08 09:34:23 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.59 2014/05/30 13:46:16 mpi Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -562,10 +562,9 @@ boot(int howto) } if_downall(); - /* XXX probably save howto into stable storage */ - uvm_shutdown(); splhigh(); + cold = 1; if (howto & RB_DUMP) dumpsys(); |