]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/custom/__fork.s
xnu-3248.60.10.tar.gz
[apple/xnu.git] / libsyscall / custom / __fork.s
index 2de3a9a28be4a40f110844b8d4b96fc4809dc02f..5857ab2ad94fc8e1c3a7cac925c36dca46b0597a 100644 (file)
@@ -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