-/* $OpenBSD: machdep.c,v 1.227 2014/07/12 14:12:44 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.228 2014/07/12 22:37:03 uebayasi Exp $ */
/*
* Copyright (c) 1999-2003 Michael Shalayeff
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/buf.h>
-#include <sys/reboot.h>
#include <sys/device.h>
#include <sys/conf.h>
#include <sys/file.h>
void
hpmc_dump(void)
{
- printf("HPMC\n");
-
cold = 0;
- reboot(RB_NOSYNC);
+ panic("HPMC");
+ /* NOTREACHED */
}
int
-/* $OpenBSD: machdep.c,v 1.65 2014/07/12 14:12:44 uebayasi Exp $ */
+/* $OpenBSD: machdep.c,v 1.66 2014/07/12 22:37:03 uebayasi Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/buf.h>
-#include <sys/reboot.h>
#include <sys/device.h>
#include <sys/conf.h>
#include <sys/file.h>
void
hpmc_dump(void)
{
- printf("HPMC\n");
-
cold = 0;
- reboot(RB_NOSYNC);
+ panic("HPMC");
+ /* NOTREACHED */
}
int
-/* $OpenBSD: ip27_machdep.c,v 1.61 2014/07/12 18:44:42 tedu Exp $ */
+/* $OpenBSD: ip27_machdep.c,v 1.62 2014/07/12 22:37:03 uebayasi Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/malloc.h>
-#include <sys/reboot.h>
#include <sys/tty.h>
#include <mips64/arcbios.h>
#ifdef DDB
(void)kdb_trap(-1, &nmi_frame);
#endif
- printf("Resetting system...\n");
- reboot(RB_USERREQ);
+ panic("NMI");
+ /* NOTREACHED */
}
-/* $OpenBSD: ip30_machdep.c,v 1.61 2014/07/12 14:12:44 uebayasi Exp $ */
+/* $OpenBSD: ip30_machdep.c,v 1.62 2014/07/12 22:37:03 uebayasi Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/device.h>
-#include <sys/reboot.h>
#include <sys/tty.h>
#include <mips64/arcbios.h>
kdb_trap(-1, fr0);
splx(s);
- printf("Resetting system...\n");
- reboot(RB_USERREQ);
+ panic("NMI");
+ /* NOTREACHED */
}
#endif
-/* $OpenBSD: psycho.c,v 1.72 2014/07/12 18:44:43 tedu Exp $ */
+/* $OpenBSD: psycho.c,v 1.73 2014/07/12 22:37:03 uebayasi Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
#include <sys/systm.h>
#include <sys/time.h>
#include <sys/timetc.h>
-#include <sys/reboot.h>
#include <uvm/uvm_extern.h>
/*
* We lost power. Try to shut down NOW.
*/
- printf("Power Failure Detected: Shutting down NOW.\n");
- reboot(RB_POWERDOWN | RB_HALT);
+ panic("Power Failure Detected");
+ /* NOTREACHED */
return (1);
}