summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-08-23 20:32:21 +0000
committerjhb <jhb@FreeBSD.org>2001-08-23 20:32:21 +0000
commit1383792740ea5dc3ab1c1a913165d848ce096ec5 (patch)
treeeb02f1d61fe71a6ec8e8fa4fd35a2552a741e661 /sys/conf
parent7e0c531a0d012f6d90bbc79927113ac769205d70 (diff)
downloadFreeBSD-src-1383792740ea5dc3ab1c1a913165d848ce096ec5.zip
FreeBSD-src-1383792740ea5dc3ab1c1a913165d848ce096ec5.tar.gz
Add a new kernel option RESTARTABLE_PANICS. If this option is present,
then one can restart from a panic by resetting the panicstr variable to NULL. This commit conditionalizes the previously committed functionality on this variable. It also removes the __dead2 attribute from the panic() function so that when one continues from a panic() the behavior will be predictable.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/NOTES10
-rw-r--r--sys/conf/options1
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 41434c4..405cbc2 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -388,6 +388,16 @@ options DIAGNOSTIC
options REGRESSION
#
+# RESTARTABLE_PANICS allows one to continue from a panic as if it were
+# a call to the debugger via the Debugger() function instead. It is only
+# useful if a kernel debugger is present. To restart from a panic, reset
+# the panicstr variable to NULL and continue execution. This option is
+# for development use only and should NOT be used in production systems
+# to "workaround" a panic.
+#
+options RESTARTABLE_PANICS
+
+#
# PERFMON causes the driver for Pentium/Pentium Pro performance counters
# to be compiled. See perfmon(4) for more information.
#
diff --git a/sys/conf/options b/sys/conf/options
index 6e62f52..f43d3d6 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -387,6 +387,7 @@ ENABLE_VFS_IOOPT opt_global.h
INVARIANT_SUPPORT opt_global.h
INVARIANTS opt_global.h
REGRESSION opt_global.h
+RESTARTABLE_PANICS opt_global.h
SIMPLELOCK_DEBUG opt_global.h
VFS_BIO_DEBUG opt_global.h
OpenPOWER on IntegriCloud