aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/traps_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c
index cf37d20b1ba7..dc7c05e5cfe7 100644
--- a/arch/x86/kernel/traps_32.c
+++ b/arch/x86/kernel/traps_32.c
@@ -1119,7 +1119,7 @@ void do_spurious_interrupt_bug(struct pt_regs *regs, long error_code)
1119 1119
1120unsigned long patch_espfix_desc(unsigned long uesp, unsigned long kesp) 1120unsigned long patch_espfix_desc(unsigned long uesp, unsigned long kesp)
1121{ 1121{
1122 struct desc_struct *gdt = __get_cpu_var(gdt_page).gdt; 1122 struct desc_struct *gdt = get_cpu_gdt_table(smp_processor_id());
1123 unsigned long base = (kesp - uesp) & -THREAD_SIZE; 1123 unsigned long base = (kesp - uesp) & -THREAD_SIZE;
1124 unsigned long new_kesp = kesp - base; 1124 unsigned long new_kesp = kesp - base;
1125 unsigned long lim_pages = (new_kesp | (THREAD_SIZE - 1)) >> PAGE_SHIFT; 1125 unsigned long lim_pages = (new_kesp | (THREAD_SIZE - 1)) >> PAGE_SHIFT;