aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process_64.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-25 00:19:23 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 07:11:10 -0400
commit3fe0a63efd4437f6438ce5f2708929b1108873b6 (patch)
treef25811c4ac0ee5afcedaa99d0d8c5233e376c8e0 /arch/x86/kernel/process_64.c
parent0814e0bace537b7024b09187346b99401e6281be (diff)
x86, 64-bit: __switch_to(): move arch_leave_lazy_cpu_mode() to the right place
We must leave lazy mode before switching the %fs and %gs selectors. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: xen-devel <xen-devel@lists.xensource.com> Cc: Stephen Tweedie <sct@redhat.com> Cc: Eduardo Habkost <ehabkost@redhat.com> Cc: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r--arch/x86/kernel/process_64.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index ddc6fcc73dc6..488eaca47bd8 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -562,6 +562,15 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
562 562
563 load_TLS(next, cpu); 563 load_TLS(next, cpu);
564 564
565 /*
566 * Leave lazy mode, flushing any hypercalls made here.
567 * This must be done before restoring TLS segments so
568 * the GDT and LDT are properly updated, and must be
569 * done before math_state_restore, so the TS bit is up
570 * to date.
571 */
572 arch_leave_lazy_cpu_mode();
573
565 /* 574 /*
566 * Switch FS and GS. 575 * Switch FS and GS.
567 */ 576 */