X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..4d15aeb193b2c68f1d38666c317f8d3734f5f083:/libsyscall/custom/__getpid.s diff --git a/libsyscall/custom/__getpid.s b/libsyscall/custom/__getpid.s index 48c85313c..2768d9b82 100644 --- a/libsyscall/custom/__getpid.s +++ b/libsyscall/custom/__getpid.s @@ -32,9 +32,9 @@ .data .private_extern __current_pid -__current_pid: +L__current_pid_addr: + __current_pid: .long 0 -L__current_pid_addr = __current_pid #if defined(__DYNAMIC__) #define GET_CURRENT_PID \ @@ -61,7 +61,7 @@ LEAF(___getpid, 0) jle 1f ret 1: - UNIX_SYSCALL_NONAME(getpid, 0) + UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel) movl %eax, %edx xorl %eax, %eax GET_CURRENT_PID @@ -88,7 +88,7 @@ LEAF(___getpid, 0) jle 1f ret 1: - UNIX_SYSCALL_NONAME(getpid, 0) + UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel) movl %eax, %edx xorl %eax, %eax leaq __current_pid(%rip), %rcx