Messages in this thread Patch in this message | | | From | Glauber Costa <> | Subject | [PATCH 02/15] x86: don't use gdt_page openly. | Date | Mon, 9 Jun 2008 11:16:45 -0300 |
| |
There's a macro available for that.
Signed-off-by: Glauber Costa <gcosta@redhat.com> --- arch/x86/kernel/traps_32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/traps_32.c b/arch/x86/kernel/traps_32.c index a92b0c7..9ad896d 100644 --- a/arch/x86/kernel/traps_32.c +++ b/arch/x86/kernel/traps_32.c @@ -1135,7 +1135,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; -- 1.5.4.5
| |