aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-05-27 20:14:51 -0700
committerIngo Molnar <mingo@elte.hu>2008-07-08 12:48:15 +0200
commit736f12bff9d9e7b4e895c64f73b190c8383fc2a1 (patch)
tree7b32e06211acc289637cb6792ff7c4b58c5809fa
parent9cf4f298e29abba25c16679fe7be70898223167e (diff)
downloadkernel_samsung_crespo-736f12bff9d9e7b4e895c64f73b190c8383fc2a1.zip
kernel_samsung_crespo-736f12bff9d9e7b4e895c64f73b190c8383fc2a1.tar.gz
kernel_samsung_crespo-736f12bff9d9e7b4e895c64f73b190c8383fc2a1.tar.bz2
x86: don't use gdt_page openly.
There's a macro available for that. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-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 cf37d20..dc7c05e 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)
unsigned long patch_espfix_desc(unsigned long uesp, unsigned long kesp)
{
- struct desc_struct *gdt = __get_cpu_var(gdt_page).gdt;
+ struct desc_struct *gdt = get_cpu_gdt_table(smp_processor_id());
unsigned long base = (kesp - uesp) & -THREAD_SIZE;
unsigned long new_kesp = kesp - base;
unsigned long lim_pages = (new_kesp | (THREAD_SIZE - 1)) >> PAGE_SHIFT;