diff options
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index e00c31a4b3c0..6c5f57602108 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -620,9 +620,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
620 | write_pda(oldrsp, next->usersp); | 620 | write_pda(oldrsp, next->usersp); |
621 | percpu_write(current_task, next_p); | 621 | percpu_write(current_task, next_p); |
622 | 622 | ||
623 | write_pda(kernelstack, | 623 | percpu_write(kernel_stack, |
624 | (unsigned long)task_stack_page(next_p) + | 624 | (unsigned long)task_stack_page(next_p) + |
625 | THREAD_SIZE - PDA_STACKOFFSET); | 625 | THREAD_SIZE - KERNEL_STACK_OFFSET); |
626 | #ifdef CONFIG_CC_STACKPROTECTOR | 626 | #ifdef CONFIG_CC_STACKPROTECTOR |
627 | write_pda(stack_canary, next_p->stack_canary); | 627 | write_pda(stack_canary, next_p->stack_canary); |
628 | /* | 628 | /* |