summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_xxx.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-08-06 19:45:34 +0000
committerjoerg <joerg@FreeBSD.org>1995-08-06 19:45:34 +0000
commit8bdb8276ba8ae163b30582387439aaddcb2f213a (patch)
treeb9fcfea20392f20faa097dac2dd14c150a2db4c2 /sys/kern/kern_xxx.c
parentc3ad48e5290810aa670deed688606c8374e33bfc (diff)
downloadFreeBSD-src-8bdb8276ba8ae163b30582387439aaddcb2f213a.zip
FreeBSD-src-8bdb8276ba8ae163b30582387439aaddcb2f213a.tar.gz
Extentd David's recent change to shutdown_nice() by calling
cpu_reset() directly in case init(8) is *not* running.
Diffstat (limited to 'sys/kern/kern_xxx.c')
-rw-r--r--sys/kern/kern_xxx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c
index 3c865e4..816a50f 100644
--- a/sys/kern/kern_xxx.c
+++ b/sys/kern/kern_xxx.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_xxx.c 8.2 (Berkeley) 11/14/93
- * $Id: kern_xxx.c,v 1.10 1995/05/30 08:05:49 rgrimes Exp $
+ * $Id: kern_xxx.c,v 1.11 1995/07/30 17:10:36 davidg Exp $
*/
#include <sys/param.h>
@@ -43,6 +43,7 @@
#include <sys/sysctl.h>
#include <sys/utsname.h>
#include <sys/signalvar.h>
+#include <machine/md_var.h>
/* This implements a "TEXT_SET" for cleanup functions */
@@ -171,6 +172,9 @@ shutdown_nice(void)
/* Send a signal to init(8) and have it shutdown the world */
if (initproc != NULL)
psignal(initproc, SIGINT);
+ else
+ /* No init(8) running, simply reset the CPU */
+ cpu_reset();
return;
}
OpenPOWER on IntegriCloud