diff options
author | dwhite <dwhite@FreeBSD.org> | 2005-04-30 20:01:00 +0000 |
---|---|---|
committer | dwhite <dwhite@FreeBSD.org> | 2005-04-30 20:01:00 +0000 |
commit | c8fa8099674d921d50dae72e3a58ef66ac9c7fbc (patch) | |
tree | b1d1d16a2806520655c3bf213640cc3b5593de38 /sys/amd64/include/smp.h | |
parent | ebe4b8304d164a842cc96bcc863c9321a37f57ff (diff) | |
download | FreeBSD-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/amd64/include/smp.h')
-rw-r--r-- | sys/amd64/include/smp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/amd64/include/smp.h b/sys/amd64/include/smp.h index 8aea3b9..2c63dc9 100644 --- a/sys/amd64/include/smp.h +++ b/sys/amd64/include/smp.h @@ -63,6 +63,11 @@ void smp_masked_invlpg_range(u_int mask, vm_offset_t startva, void smp_invltlb(void); void smp_masked_invltlb(u_int mask); +#ifdef KDB_STOP_NMI +int ipi_nmi_handler(void); +void ipi_nmi_selected(u_int32_t cpus); +#endif + #endif /* !LOCORE */ #endif /* SMP */ |