summaryrefslogtreecommitdiffstats
path: root/sys/conf/options.i386
diff options
context:
space:
mode:
authordwhite <dwhite@FreeBSD.org>2005-04-30 20:01:00 +0000
committerdwhite <dwhite@FreeBSD.org>2005-04-30 20:01:00 +0000
commitc8fa8099674d921d50dae72e3a58ef66ac9c7fbc (patch)
treeb1d1d16a2806520655c3bf213640cc3b5593de38 /sys/conf/options.i386
parentebe4b8304d164a842cc96bcc863c9321a37f57ff (diff)
downloadFreeBSD-src-c8fa8099674d921d50dae72e3a58ef66ac9c7fbc.zip
FreeBSD-src-c8fa8099674d921d50dae72e3a58ef66ac9c7fbc.tar.gz
Implement an alternate method to stop CPUs when entering DDB. Normally we use
a regular IPI vector, but this vector is blocked when interrupts are disabled. With "options KDB_STOP_NMI" and debug.kdb.stop_cpus_with_nmi set, KDB will send an NMI to each CPU instead. The code also has a context-stuffing feature which helps ddb extract the state of processes running on the stopped CPUs. KDB_STOP_NMI is only useful with SMP and complains if SMP is not defined. This feature only applies to i386 and amd64 at the moment, but could be used on other architectures with the appropriate MD bits. Submitted by: ups
Diffstat (limited to 'sys/conf/options.i386')
-rw-r--r--sys/conf/options.i3863
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/options.i386 b/sys/conf/options.i386
index a1dfee6..405614f 100644
--- a/sys/conf/options.i386
+++ b/sys/conf/options.i386
@@ -160,3 +160,6 @@ IPR_LOG opt_i4b.h
DEV_APIC opt_apic.h
DEV_NPX opt_npx.h
ASR_COMPAT opt_asr.h
+
+# Debugging
+KDB_STOP_NMI opt_global.h
OpenPOWER on IntegriCloud