X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..7e41aa883dd258f888d0470250eead40a53ef1f5:/libsyscall/custom/__fork.s?ds=sidebyside diff --git a/libsyscall/custom/__fork.s b/libsyscall/custom/__fork.s index 2de3a9a28..5857ab2ad 100644 --- a/libsyscall/custom/__fork.s +++ b/libsyscall/custom/__fork.s @@ -55,7 +55,7 @@ LEAF(___fork, 0) UNIX_SYSCALL_TRAP // do the system call jnc L1 // jump if CF==0 - CALL_EXTERN(cerror) + CALL_EXTERN(tramp_cerror) movl $-1,%eax addl $28, %esp // restore the stack ret @@ -81,7 +81,8 @@ LEAF(___fork, 0) UNIX_SYSCALL_TRAP // do the system call jnc L1 // jump if CF==0 - CALL_EXTERN(cerror) + movq %rax, %rdi + CALL_EXTERN(_cerror) movq $-1, %rax addq $24, %rsp // restore the stack ret