-/* $OpenBSD: machdep.c,v 1.160 2014/07/10 21:46:02 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.161 2014/07/13 22:13:06 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */
/*-
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
#if defined(MULTIPROCESSOR)
cpus_running);
#endif
- /* If rebooting and a dump is requested do it. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.186 2014/07/13 12:11:01 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.187 2014/07/13 22:13:06 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.3 2003/05/07 22:58:18 fvdl Exp $ */
/*-
delay(4*1000000); /* XXX */
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* Do a dump if requested. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: armish_machdep.c,v 1.28 2014/07/10 21:46:02 mpi Exp $ */
+/* $OpenBSD: armish_machdep.c,v 1.29 2014/07/13 22:13:06 uebayasi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
dumpsys();
-/* $OpenBSD: armv7_machdep.c,v 1.11 2014/07/10 21:46:02 mpi Exp $ */
+/* $OpenBSD: armv7_machdep.c,v 1.12 2014/07/13 22:13:06 uebayasi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
dumpsys();
- /* Run any shutdown hooks */
doshutdownhooks();
if (mainbus != NULL)
config_suspend(mainbus, DVACT_POWERDOWN);
-/* $OpenBSD: machdep.c,v 1.68 2014/07/10 21:46:02 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.69 2014/07/13 22:13:06 uebayasi Exp $ */
/*
* Copyright (c) 2007 Miodrag Vallat.
*
if ((howto & RB_NOSYNC) == 0) {
vfs_shutdown();
- if ((howto & RB_TIMEBAD) == 0)
+ if ((howto & RB_TIMEBAD) == 0) {
resettodr();
- else
+ } else {
printf("WARNING: not updating battery clock\n");
+ }
}
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.229 2014/07/13 09:08:20 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.230 2014/07/13 22:13:06 uebayasi Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
waittime = 0;
vfs_shutdown();
- if ((howto & RB_TIMEBAD) == 0)
+ if ((howto & RB_TIMEBAD) == 0) {
resettodr();
- else
+ } else {
printf("WARNING: not updating battery clock\n");
+ }
}
if_downall();
-/* $OpenBSD: machdep.c,v 1.67 2014/07/13 09:08:20 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.68 2014/07/13 22:13:06 uebayasi Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
waittime = 0;
vfs_shutdown();
- if ((howto & RB_TIMEBAD) == 0)
+ if ((howto & RB_TIMEBAD) == 0) {
resettodr();
- else
+ } else {
printf("WARNING: not updating battery clock\n");
+ }
}
if_downall();
-/* $OpenBSD: machdep.c,v 1.546 2014/07/11 22:28:05 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.547 2014/07/13 22:13:06 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
delay(4*1000000); /* XXX */
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
/* Do a dump if requested. */
-/* $OpenBSD: machdep.c,v 1.36 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.37 2014/07/13 22:13:06 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
if ((howto & RB_NOSYNC) == 0) {
vfs_shutdown();
- if ((howto & RB_TIMEBAD) == 0)
+ if ((howto & RB_TIMEBAD) == 0) {
resettodr();
- else
+ } else {
printf("WARNING: not updating battery clock\n");
+ }
}
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
/* Do a dump if requested. */
-/* $OpenBSD: machdep.c,v 1.54 2014/07/11 22:28:05 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.55 2014/07/13 22:13:06 uebayasi Exp $ */
/*
* Copyright (c) 2009, 2010, 2014 Miodrag Vallat.
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.105 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.106 2014/07/13 22:13:07 uebayasi Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
if ((howto & RB_NOSYNC) == 0) {
vfs_shutdown();
- if ((howto & RB_TIMEBAD) == 0)
+ if ((howto & RB_TIMEBAD) == 0) {
resettodr();
- else
+ } else {
printf("WARNING: not updating battery clock\n");
+ }
}
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.157 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.158 2014/07/13 22:13:07 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
boothowto = howto;
if (!(howto & RB_NOSYNC) && !syncing) {
syncing = 1;
- vfs_shutdown(); /* sync */
+ vfs_shutdown();
if ((howto & RB_TIMEBAD) == 0) {
resettodr();
-/* $OpenBSD: machdep.c,v 1.57 2014/07/13 18:07:38 jasper Exp $ */
+/* $OpenBSD: machdep.c,v 1.58 2014/07/13 22:13:07 uebayasi Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.145 2014/07/11 22:28:05 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.146 2014/07/13 22:13:07 uebayasi Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.52 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.53 2014/07/13 22:13:07 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
boothowto = howto;
if (!(howto & RB_NOSYNC) && !syncing) {
syncing = 1;
- vfs_shutdown(); /* sync */
+ vfs_shutdown();
if ((howto & RB_TIMEBAD) == 0) {
resettodr();
-/* $OpenBSD: machdep.c,v 1.39 2014/07/12 18:44:42 tedu Exp $ */
+/* $OpenBSD: machdep.c,v 1.40 2014/07/13 22:13:07 uebayasi Exp $ */
/* OpenBSD: machdep.c,v 1.105 2005/04/11 15:13:01 deraadt Exp */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.161 2014/07/12 18:44:43 tedu Exp $ */
+/* $OpenBSD: machdep.c,v 1.162 2014/07/13 22:13:07 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
if (howto & RB_DUMP)
-/* $OpenBSD: machdep.c,v 1.164 2014/07/12 18:44:43 tedu Exp $ */
+/* $OpenBSD: machdep.c,v 1.165 2014/07/13 22:13:07 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: machdep.c,v 1.140 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.141 2014/07/13 22:13:07 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* If rebooting and a dump is requested, do it. */
if (howto & RB_DUMP)
dumpsys();
-/* $OpenBSD: zaurus_machdep.c,v 1.48 2014/07/11 10:10:44 uebayasi Exp $ */
+/* $OpenBSD: zaurus_machdep.c,v 1.49 2014/07/13 22:13:07 uebayasi Exp $ */
/* $NetBSD: lubbock_machdep.c,v 1.2 2003/07/15 00:25:06 lukem Exp $ */
/*
if_downall();
uvm_shutdown();
- splhigh(); /* Disable interrupts. */
+ splhigh();
cold = 1;
- /* Do a dump if requested. */
if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
dumpsys();