diff options
author | Zachary Amsden <zach@vmware.com> | 2005-10-30 14:59:34 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 17:37:12 -0800 |
commit | 251e6912df43df54570ed68aade703b329c6cd5b (patch) | |
tree | 28695a0c9a468281613a6b8ef8c79596e2764001 /arch/i386/mm | |
parent | 72e12b76fe48d99d1deb417f177b10a9d99b2e74 (diff) | |
download | kernel_samsung_tuna-251e6912df43df54570ed68aade703b329c6cd5b.zip kernel_samsung_tuna-251e6912df43df54570ed68aade703b329c6cd5b.tar.gz kernel_samsung_tuna-251e6912df43df54570ed68aade703b329c6cd5b.tar.bz2 |
[PATCH] x86: add an accessor function for getting the per-CPU gdt
Add an accessor function for getting the per-CPU gdt. Callee must already
have the CPU.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/mm')
-rw-r--r-- | arch/i386/mm/fault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/mm/fault.c b/arch/i386/mm/fault.c index 9edd448..cf572d9 100644 --- a/arch/i386/mm/fault.c +++ b/arch/i386/mm/fault.c @@ -108,7 +108,7 @@ static inline unsigned long get_segment_eip(struct pt_regs *regs, desc = (void *)desc + (seg & ~7); } else { /* Must disable preemption while reading the GDT. */ - desc = (u32 *)&per_cpu(cpu_gdt_table, get_cpu()); + desc = (u32 *)get_cpu_gdt_table(get_cpu()); desc = (void *)desc + (seg & ~7); } |