diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-09-05 05:09:05 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 09:40:50 +0200 |
commit | fab334c1d5f24d23d12f98ad652d399279cd03ce (patch) | |
tree | 8533620fceedb5cbabdcc9c28e2e810ff12cc4db /arch/x86/kernel/cpu/common_64.c | |
parent | x86: cpu/common*.c have same cpu_init(), with copying and #ifdef (diff) | |
download | linux-fab334c1d5f24d23d12f98ad652d399279cd03ce.tar.xz linux-fab334c1d5f24d23d12f98ad652d399279cd03ce.zip |
x86: cpu/common*.c, merge switch_to_new_gdt()
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/common_64.c')
-rw-r--r-- | arch/x86/kernel/cpu/common_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common_64.c b/arch/x86/kernel/cpu/common_64.c index 2bd0ed5abb0a..d7b996518f86 100644 --- a/arch/x86/kernel/cpu/common_64.c +++ b/arch/x86/kernel/cpu/common_64.c @@ -214,6 +214,9 @@ void switch_to_new_gdt(void) gdt_descr.address = (long)get_cpu_gdt_table(smp_processor_id()); gdt_descr.size = GDT_SIZE - 1; load_gdt(&gdt_descr); +#ifdef CONFIG_X86_32 + asm("mov %0, %%fs" : : "r" (__KERNEL_PERCPU) : "memory"); +#endif } static struct cpu_dev *cpu_devs[X86_VENDOR_NUM] = {}; |