X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/5ba3f43ea354af8ad55bea84372a2bc834d8757c..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/libsyscall/custom/__getpid.s diff --git a/libsyscall/custom/__getpid.s b/libsyscall/custom/__getpid.s index a048f48aa..a8daa7398 100644 --- a/libsyscall/custom/__getpid.s +++ b/libsyscall/custom/__getpid.s @@ -159,7 +159,7 @@ MI_ENTRY_POINT(___getpid) MI_GET_ADDRESS(x9, __current_pid) // Get address of cached value ldr w0, [x9] // Load it cmp w0, #0 // See if there's a cached value - b.ls L_notcached // If not, make syscall + b.le L_notcached // If not, make syscall ret // Else, we're done L_notcached: SYSCALL_NONAME(getpid, 0, cerror_nocancel)