summaryrefslogtreecommitdiffstats
path: root/sys/conf/options.amd64
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.amd64
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.amd64')
-rw-r--r--sys/conf/options.amd643
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/options.amd64 b/sys/conf/options.amd64
index 82f864d..0227bfd 100644
--- a/sys/conf/options.amd64
+++ b/sys/conf/options.amd64
@@ -55,3 +55,6 @@ PSM_HOOKRESUME opt_psm.h
PSM_RESETAFTERSUSPEND opt_psm.h
PSM_DEBUG opt_psm.h
DEV_ATPIC opt_atpic.h
+
+# Debugging
+KDB_STOP_NMI opt_global.h
OpenPOWER on IntegriCloud