-/* $OpenBSD: power.c,v 1.6 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: power.c,v 1.7 2014/07/12 14:12:44 uebayasi Exp $ */
/*
* Copyright (c) 2003 Michael Shalayeff
* switch and thus we have do dampen it ourselves.
*/
if (sc->sc_dr_cnt == hz / 10)
- boot(RB_POWERDOWN | RB_HALT);
+ reboot(RB_POWERDOWN | RB_HALT);
tsleep(v, PWAIT, "drpower", 10);
}
-/* $OpenBSD: machdep.c,v 1.226 2014/07/10 21:46:02 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.227 2014/07/12 14:12:44 uebayasi Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
printf("HPMC\n");
cold = 0;
- boot(RB_NOSYNC);
+ reboot(RB_NOSYNC);
}
int
-/* $OpenBSD: power.c,v 1.2 2014/03/29 18:09:29 guenther Exp $ */
+/* $OpenBSD: power.c,v 1.3 2014/07/12 14:12:44 uebayasi Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
: "=&r" (r) : "r" (sc->sc_pwr_reg));
if (!(r & 1))
- boot(RB_POWERDOWN | RB_HALT);
+ reboot(RB_POWERDOWN | RB_HALT);
tsleep(v, PWAIT, "regpower", 10);
}
-/* $OpenBSD: machdep.c,v 1.64 2014/07/10 21:46:03 mpi Exp $ */
+/* $OpenBSD: machdep.c,v 1.65 2014/07/12 14:12:44 uebayasi Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
printf("HPMC\n");
cold = 0;
- boot(RB_NOSYNC);
+ reboot(RB_NOSYNC);
}
int
-/* $OpenBSD: ip27_machdep.c,v 1.59 2014/05/19 21:18:42 miod Exp $ */
+/* $OpenBSD: ip27_machdep.c,v 1.60 2014/07/12 14:12:44 uebayasi Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
(void)kdb_trap(-1, &nmi_frame);
#endif
printf("Resetting system...\n");
- boot(RB_USERREQ);
+ reboot(RB_USERREQ);
}
-/* $OpenBSD: ip30_machdep.c,v 1.60 2014/04/03 08:07:16 mpi Exp $ */
+/* $OpenBSD: ip30_machdep.c,v 1.61 2014/07/12 14:12:44 uebayasi Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
splx(s);
printf("Resetting system...\n");
- boot(RB_USERREQ);
+ reboot(RB_USERREQ);
}
#endif
-/* $OpenBSD: psycho.c,v 1.70 2014/01/24 09:36:23 kettenis Exp $ */
+/* $OpenBSD: psycho.c,v 1.71 2014/07/12 14:12:44 uebayasi Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
* We lost power. Try to shut down NOW.
*/
printf("Power Failure Detected: Shutting down NOW.\n");
- boot(RB_POWERDOWN|RB_HALT);
+ reboot(RB_POWERDOWN | RB_HALT);
return (1);
}
-/* $OpenBSD: sbus.c,v 1.39 2010/12/26 15:37:20 kettenis Exp $ */
+/* $OpenBSD: sbus.c,v 1.40 2014/07/12 14:12:44 uebayasi Exp $ */
/* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */
/*-
/* Should try a clean shutdown first */
printf("DANGER: OVER TEMPERATURE detected\nShutting down...\n");
delay(20);
- boot(RB_POWERDOWN|RB_HALT);
+ reboot(RB_POWERDOWN | RB_HALT);
/*NOTREACHED*/
return (1);
}