x86: Keep current stack in NMI breakpoints
[linux-2.6-block.git] / arch / x86 / kernel / traps.c
index a8e3eb83466cd191afa95dc1ba6839f317955b68..a93c5cabc36adb7530b46e6591c0b16e55a6bf69 100644 (file)
@@ -723,4 +723,10 @@ void __init trap_init(void)
        cpu_init();
 
        x86_init.irqs.trap_init();
+
+#ifdef CONFIG_X86_64
+       memcpy(&nmi_idt_table, &idt_table, IDT_ENTRIES * 16);
+       set_nmi_gate(1, &debug);
+       set_nmi_gate(3, &int3);
+#endif
 }