]> git.saurik.com Git - apple/libc.git/blobdiff - i386/sys/getpid.s
Libc-391.4.1.tar.gz
[apple/libc.git] / i386 / sys / getpid.s
index 4a4e4d1e9fcadaa097d2edf342830ffe24ec8865..d08bd95236bd97ec4682ef9e785d4327b100dbe1 100644 (file)
@@ -59,6 +59,7 @@ LEAF(_getpid, 0)
        UNIX_SYSCALL_NONAME(getpid, 0)
        movl            %eax, %edx
        xorl            %eax, %eax
+       GET_CURRENT_PID
        lock
        cmpxchgl        %edx, __current_pid
        movl            %edx, %eax