diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-07-22 20:47:06 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-07-25 16:11:56 +0200 |
commit | 2591bc4e8d70b4e1330d327fb7e3921f4e070a51 (patch) | |
tree | fad9e764c20f7ccac755f26c7098271a5bb0e235 /arch/x86/kernel/kgdb.c | |
parent | a2df00fd501214923999071678d684f5988940f4 (diff) | |
download | linux-stable-2591bc4e8d70b4e1330d327fb7e3921f4e070a51.tar.gz linux-stable-2591bc4e8d70b4e1330d327fb7e3921f4e070a51.tar.bz2 linux-stable-2591bc4e8d70b4e1330d327fb7e3921f4e070a51.zip |
x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI
apic->send_IPI_allbutself() takes a vector number as argument.
APIC_DM_NMI is clearly not a vector number. It's defined to 0x400 which is
outside the vector space.
Use NMI_VECTOR instead as that's what it is intended to be.
Fixes: 82da3ff89dc2 ("x86: kgdb support")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190722105218.855189979@linutronix.de
Diffstat (limited to 'arch/x86/kernel/kgdb.c')
-rw-r--r-- | arch/x86/kernel/kgdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c index 23297ea64f5f..a53dfb09880f 100644 --- a/arch/x86/kernel/kgdb.c +++ b/arch/x86/kernel/kgdb.c @@ -416,7 +416,7 @@ static void kgdb_disable_hw_debug(struct pt_regs *regs) */ void kgdb_roundup_cpus(void) { - apic->send_IPI_allbutself(APIC_DM_NMI); + apic->send_IPI_allbutself(NMI_VECTOR); } #endif |