Messages in this thread Patch in this message | | | From | Andy Lutomirski <> | Subject | [PATCH 2/2] x86_64, switch_to: Fix an incorrect comment | Date | Mon, 8 Dec 2014 11:44:15 -0800 |
| |
I have no idea why load_sp0 would have anything to do with the page table pointer (i.e. cr3).
Signed-off-by: Andy Lutomirski <luto@amacapital.net> --- arch/x86/kernel/process_64.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index e2efaa3473fa..726aa694991f 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -283,9 +283,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) fpu = switch_fpu_prepare(prev_p, next_p, cpu); - /* - * Reload esp0, LDT and the page table pointer: - */ + /* Reload esp0 and ss1. */ load_sp0(tss, next); /* We must save %fs and %gs before load_TLS() because -- 1.9.3
| |