diff --git a/arch/x86_64/src/common/fork.S b/arch/x86_64/src/common/fork.S index f526a5fa956..1621b560474 100644 --- a/arch/x86_64/src/common/fork.S +++ b/arch/x86_64/src/common/fork.S @@ -118,10 +118,14 @@ up_fork: pushq %r12 movq %rsp, %rdi + subq $8, %rsp + /* call function */ callq x86_64_fork + addq $8, %rsp + /* Do not modify return value %rax */ /* Restore non-volatile registers */