aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/processor.h9
-rw-r--r--arch/x86/kernel/cpu/common.c6
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 2bb3a648fc12..8fcfcd1a8375 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -374,16 +374,7 @@ DECLARE_PER_CPU(unsigned long, cpu_current_top_of_stack);
374#define cpu_current_top_of_stack cpu_tss_rw.x86_tss.sp1 374#define cpu_current_top_of_stack cpu_tss_rw.x86_tss.sp1
375#endif 375#endif
376 376
377/*
378 * Save the original ist values for checking stack pointers during debugging
379 */
380struct orig_ist {
381 unsigned long ist[7];
382};
383
384#ifdef CONFIG_X86_64 377#ifdef CONFIG_X86_64
385DECLARE_PER_CPU(struct orig_ist, orig_ist);
386
387union irq_stack_union { 378union irq_stack_union {
388 char irq_stack[IRQ_STACK_SIZE]; 379 char irq_stack[IRQ_STACK_SIZE];
389 /* 380 /*
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index 4b01b71415f5..8243f198fb7f 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1549,12 +1549,6 @@ void syscall_init(void)
1549 X86_EFLAGS_IOPL|X86_EFLAGS_AC|X86_EFLAGS_NT); 1549 X86_EFLAGS_IOPL|X86_EFLAGS_AC|X86_EFLAGS_NT);
1550} 1550}
1551 1551
1552/*
1553 * Copies of the original ist values from the tss are only accessed during
1554 * debugging, no special alignment required.
1555 */
1556DEFINE_PER_CPU(struct orig_ist, orig_ist);
1557
1558static DEFINE_PER_CPU(unsigned long, debug_stack_addr); 1552static DEFINE_PER_CPU(unsigned long, debug_stack_addr);
1559DEFINE_PER_CPU(int, debug_stack_usage); 1553DEFINE_PER_CPU(int, debug_stack_usage);
1560 1554