]> git.saurik.com Git - apple/libc.git/blobdiff - i386/sys/cerror.s
Libc-391.2.10.tar.gz
[apple/libc.git] / i386 / sys / cerror.s
index b071f0a74a36e22ab2ab0052dd3be206cf38a629..dee3c4a62c13da30425a6ec8fde20d3cc7dcf7c0 100644 (file)
@@ -33,13 +33,9 @@ LABEL(cerror_cvt)
        movl    $45, %eax       /* Yes; make ENOTSUP for compatibility */
 LABEL(cerror)
        REG_TO_EXTERN(%eax, _errno)
-       mov             %esp,%edx
-       andl    $0xfffffff0,%esp
-       subl    $16,%esp
-       movl    %edx,4(%esp)
-       movl    %eax,(%esp)
+       pushl   %eax
        CALL_EXTERN(_cthread_set_errno_self)
-       movl    4(%esp),%esp
+       addl    $4,%esp
        movl    $-1,%eax
        movl    $-1,%edx /* in case a 64-bit value is returned */
        ret