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@
-/* $OpenBSD: machdep.c,v 1.154 2014/05/25 13:57:48 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.155 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*-
uvm_shutdown();
splhigh(); /* Disable interrupts. */
+ cold = 1;
#if defined(MULTIPROCESSOR)
/*
-/* $OpenBSD: machdep.c,v 1.177 2014/03/29 18:09:28 guenther Exp $ */
+/* $OpenBSD: machdep.c,v 1.178 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
uvm_shutdown();
splhigh(); /* Disable interrupts. */
+ cold = 1;
/* Do a dump if requested. */
if (howto & RB_DUMP)
-/* $OpenBSD: armish_machdep.c,v 1.23 2014/03/23 18:20:59 miod Exp $ */
+/* $OpenBSD: armish_machdep.c,v 1.24 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
-
- /* Say NO to interrupts */
- splhigh();
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
/* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
-/* $OpenBSD: armv7_machdep.c,v 1.6 2014/03/29 18:09:28 guenther Exp $ */
+/* $OpenBSD: armv7_machdep.c,v 1.7 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
-
- /* Say NO to interrupts */
- splhigh();
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
/* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.62 2014/05/08 22:17:33 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.63 2014/05/30 13:46:16 mpi Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
uvm_shutdown();
splhigh(); /* Disable interrupts. */
+ cold = 1;
/* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.220 2014/05/08 21:32:45 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.221 2014/05/30 13:46:16 mpi Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
}
if_downall();
- /* XXX probably save howto into stable storage */
-
uvm_shutdown();
splhigh();
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $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
}
if_downall();
- /* XXX probably save howto into stable storage */
-
uvm_shutdown();
splhigh();
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.536 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: machdep.c,v 1.537 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
uvm_shutdown();
splhigh(); /* Disable interrupts. */
+ cold = 1;
/* Do a dump if requested. */
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.31 2014/04/14 07:36:12 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.32 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
uvm_shutdown();
splhigh(); /* Disable interrupts. */
+ cold = 1;
/* Do a dump if requested. */
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.47 2014/04/03 08:07:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.48 2014/05/30 13:46:16 mpi Exp $ */
/*
* Copyright (c) 2009, 2010, 2014 Miodrag Vallat.
if_downall();
uvm_shutdown();
- (void) splhigh(); /* Extreme priority. */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.98 2014/05/08 22:17:33 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.99 2014/05/30 13:46:16 mpi Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
uvm_shutdown();
splhigh(); /* Disable interrupts. */
+ cold = 1;
/* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.150 2014/05/09 18:16:15 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.151 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
uvm_shutdown();
splhigh();
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.46 2014/05/10 22:37:12 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.47 2014/05/30 13:46:16 mpi Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
if_downall();
uvm_shutdown();
- (void) splhigh(); /* Extreme priority. */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.138 2014/05/19 21:18:42 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.139 2014/05/30 13:46:16 mpi Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
if_downall();
uvm_shutdown();
- (void) splhigh(); /* Extreme priority. */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.46 2014/05/09 18:16:15 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.47 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
uvm_shutdown();
splhigh();
+ cold = 1;
if ((howto & RB_DUMP))
dumpsys();
-/* $OpenBSD: machdep.c,v 1.31 2014/05/25 13:57:48 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.32 2014/05/30 13:46:16 mpi Exp $ */
/* OpenBSD: machdep.c,v 1.105 2005/04/11 15:13:01 deraadt Exp */
/*
if_downall();
uvm_shutdown();
- (void) splhigh(); /* ??? */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.152 2014/05/25 13:57:48 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.153 2014/05/30 13:46:16 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
if_downall();
uvm_shutdown();
- (void) splhigh(); /* ??? */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.155 2014/05/25 13:57:48 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.156 2014/05/30 13:46:17 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
if_downall();
uvm_shutdown();
- (void) splhigh(); /* ??? */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
/* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.134 2014/05/25 13:57:48 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.135 2014/05/30 13:46:17 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* extreme priority */
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
/* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
-/* $OpenBSD: zaurus_machdep.c,v 1.42 2014/03/29 18:09:30 guenther Exp $ */
+/* $OpenBSD: zaurus_machdep.c,v 1.43 2014/05/30 13:46:17 mpi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if (!(howto & RB_NOSYNC))
bootsync(howto);
- /* Say NO to interrupts */
- splhigh();
+ uvm_shutdown();
+ splhigh(); /* Disable interrupts. */
+ cold = 1;
/* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)