diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:31 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:31 -0500 |
commit | 7818a1e0294debee02d5135e17b89f28b8871887 (patch) | |
tree | 251473910cddc3c2889407cde8f6f962dc14e88f /arch/x86/kernel/process_64.c | |
parent | ca241c75037b32e0216a68e39ad2801d04fa1f87 (diff) |
x86: provide 64-bit with a load_sp0 function.
Paravirt guests need to inform the underlying hypervisor whenever the sp0
tss field changes. i386 already has such a function, and we use it for
x86_64 too. There's an unnecessary (for 64-bit) msr handling part in the original
version, and it is placed around an ifdef. Making no more sense in
processor_32.h, it is moved to the common header
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index af56104b73ff..e3a3610ade10 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -639,7 +639,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
639 | /* | 639 | /* |
640 | * Reload esp0, LDT and the page table pointer: | 640 | * Reload esp0, LDT and the page table pointer: |
641 | */ | 641 | */ |
642 | tss->x86_tss.sp0 = next->sp0; | 642 | load_sp0(tss, next); |
643 | 643 | ||
644 | /* | 644 | /* |
645 | * Switch DS and ES. | 645 | * Switch DS and ES. |