]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/x86/kernel/traps.c
x86/entry/64: Allocate and enable the SYSENTER stack
[mirror_ubuntu-artful-kernel.git] / arch / x86 / kernel / traps.c
index 3a46cab2696e5ca9146ce48810ad1c587e5f9410..7b1d0df624cf4aef7c5f1929c84a68d712310082 100644 (file)
@@ -806,14 +806,13 @@ dotraplinkage void do_debug(struct pt_regs *regs, long error_code)
        debug_stack_usage_dec();
 
 exit:
-#if defined(CONFIG_X86_32)
        /*
         * This is the most likely code path that involves non-trivial use
         * of the SYSENTER stack.  Check that we haven't overrun it.
         */
        WARN(this_cpu_read(cpu_tss.SYSENTER_stack_canary) != STACK_END_MAGIC,
             "Overran or corrupted SYSENTER stack\n");
-#endif
+
        ist_exit(regs);
 }
 NOKPROBE_SYMBOL(do_debug);