with softraid(4) disks.
softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is
not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter
does not allow to sleep.
-/* $OpenBSD: machdep.c,v 1.155 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.156 2014/05/31 15:49:28 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.178 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.179 2014/05/31 15:49:28 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.24 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: armish_machdep.c,v 1.25 2014/05/31 15:49:28 mpi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+
+ /* Say NO to interrupts */
+ splhigh();
/* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
-/* $OpenBSD: armv7_machdep.c,v 1.7 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: armv7_machdep.c,v 1.8 2014/05/31 15:49:28 mpi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+
+ /* Say NO to interrupts */
+ splhigh();
/* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.63 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.64 2014/05/31 15:49:28 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.221 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.222 2014/05/31 15:49:28 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.59 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.60 2014/05/31 15:49:28 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.537 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.538 2014/05/31 15:49:28 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.32 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.33 2014/05/31 15:49:28 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.48 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.49 2014/05/31 15:49:28 mpi Exp $ */
/*
* Copyright (c) 2009, 2010, 2014 Miodrag Vallat.
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ (void) splhigh(); /* Extreme priority. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.99 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.100 2014/05/31 15:49:28 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.151 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.152 2014/05/31 15:49:28 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.47 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.48 2014/05/31 15:49:28 mpi Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ (void) splhigh(); /* Extreme priority. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.139 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.140 2014/05/31 15:49:28 mpi Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ (void) splhigh(); /* Extreme priority. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.47 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.48 2014/05/31 15:49:28 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.32 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.33 2014/05/31 15:49:28 mpi Exp $ */
/* OpenBSD: machdep.c,v 1.105 2005/04/11 15:13:01 deraadt Exp */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ (void) splhigh(); /* ??? */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.153 2014/05/30 13:46:16 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.154 2014/05/31 15:49:28 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ (void) splhigh(); /* ??? */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.156 2014/05/30 13:46:17 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.157 2014/05/31 15:49:28 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ (void) splhigh(); /* ??? */
/* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.135 2014/05/30 13:46:17 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.136 2014/05/31 15:49:28 mpi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ splhigh(); /* extreme priority */
/* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
-/* $OpenBSD: zaurus_machdep.c,v 1.43 2014/05/30 13:46:17 mpi Exp $ */
+/* $OpenBSD: zaurus_machdep.c,v 1.44 2014/05/31 15:49:28 mpi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if (!(howto & RB_NOSYNC))
bootsync(howto);
- uvm_shutdown();
- splhigh(); /* Disable interrupts. */
- cold = 1;
+ /* Say NO to interrupts */
+ splhigh();
/* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)