aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/kernel/entry.S')
-rw-r--r--arch/x86_64/kernel/entry.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S
index b8285cf1a9c3..ab9b2c4726f2 100644
--- a/arch/x86_64/kernel/entry.S
+++ b/arch/x86_64/kernel/entry.S
@@ -978,6 +978,11 @@ ENTRY(kernel_thread)
978 call do_fork 978 call do_fork
979 movq %rax,RAX(%rsp) 979 movq %rax,RAX(%rsp)
980 xorl %edi,%edi 980 xorl %edi,%edi
981 test %rax,%rax
982 jnz 1f
983 /* terminate stack in child */
984 movq %rdi,RIP(%rsp)
9851:
981 986
982 /* 987 /*
983 * It isn't worth to check for reschedule here, 988 * It isn't worth to check for reschedule here,