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.159 2014/07/10 20:15:26 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.160 2014/07/10 21:46:02 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.183 2014/07/10 20:15:26 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.184 2014/07/10 21:46:02 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.27 2014/07/10 20:15:26 uebayasi Exp $ */
+/* $OpenBSD: armish_machdep.c,v 1.28 2014/07/10 21:46:02 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.10 2014/07/10 20:37:41 uebayasi Exp $ */
+/* $OpenBSD: armv7_machdep.c,v 1.11 2014/07/10 21:46:02 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.67 2014/07/10 20:15:26 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.68 2014/07/10 21:46:02 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.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
}
if_downall();
- /* XXX probably save howto into stable storage */
-
uvm_shutdown();
splhigh();
+ cold = 1;
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.63 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.64 2014/07/10 21:46:03 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.544 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.545 2014/07/10 21:46:03 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.35 2014/07/10 13:34:32 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.36 2014/07/10 21:46:03 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.52 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.53 2014/07/10 21:46:03 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.104 2014/07/10 20:37:42 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.105 2014/07/10 21:46:03 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.156 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.157 2014/07/10 21:46:03 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.52 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.53 2014/07/10 21:46:03 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.143 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.144 2014/07/10 21:46:03 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.51 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.52 2014/07/10 21:46:03 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.36 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.37 2014/07/10 21:46:03 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.157 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.158 2014/07/10 21:46:03 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.160 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.161 2014/07/10 21:46:03 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.139 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.140 2014/07/10 21:46:03 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.46 2014/07/10 20:15:27 uebayasi Exp $ */
+/* $OpenBSD: zaurus_machdep.c,v 1.47 2014/07/10 21:46:03 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)