add option HALTLOOP to loop in boot() instead of halting/rebooting
This commit is contained in:
parent
71fa065268
commit
12dae0a656
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: machdep.c,v 1.3 1995/03/24 15:04:14 cgd Exp $ */
|
/* $NetBSD: machdep.c,v 1.4 1995/04/22 12:42:01 cgd Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||||
|
@ -708,6 +708,11 @@ boot(howto)
|
||||||
if (curproc)
|
if (curproc)
|
||||||
savectx(curproc->p_addr, 0);
|
savectx(curproc->p_addr, 0);
|
||||||
|
|
||||||
|
#ifdef HALTLOOP
|
||||||
|
while (1)
|
||||||
|
;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* If system is cold, just halt. */
|
/* If system is cold, just halt. */
|
||||||
if (cold) {
|
if (cold) {
|
||||||
howto |= RB_HALT;
|
howto |= RB_HALT;
|
||||||
|
|
Loading…
Reference in New Issue