Skip to content

Commit 2591bc4

Browse files
committed
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: 82da3ff ("x86: kgdb support") Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent a2df00f commit 2591bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/kgdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static void kgdb_disable_hw_debug(struct pt_regs *regs)
416416
*/
417417
void kgdb_roundup_cpus(void)
418418
{
419-
apic->send_IPI_allbutself(APIC_DM_NMI);
419+
apic->send_IPI_allbutself(NMI_VECTOR);
420420
}
421421
#endif
422422

0 commit comments

Comments
 (0)