Subject: halt on panic [patch]
To: None <tech-kern@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-kern
Date: 06/28/2004 18:31:00
When the system panics, it reboots immediately. On some systems (i386 :),
it's too fast to read anything. Thus, being able to at least halt the
machine if needed would be nice. What do people think about a
HALT_ON_PANIC kernel option? Implementation below...
I'd to commit this, unless someone has objections.
- Hubert
Index: sys/kern/subr_prf.c
===================================================================
RCS file: /cvsroot/src/sys/kern/subr_prf.c,v
retrieving revision 1.94
diff -u -r1.94 subr_prf.c
--- sys/kern/subr_prf.c 23 Mar 2004 13:22:04 -0000 1.94
+++ sys/kern/subr_prf.c 28 Jun 2004 16:28:09 -0000
@@ -191,6 +191,9 @@
va_list ap;
bootopt = RB_AUTOBOOT;
+#ifdef HALT_ON_PANIC
+ bootopt |= RB_HALT;
+#endif
if (dumponpanic)
bootopt |= RB_DUMP;
if (doing_shutdown)
--
,,_
If wishes were wings, o" )~ would fly. -- Go www.NetBSD.org!
''''