X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/36401178fd6817c043cc00b0c00c7f723e58efae..7e41aa883dd258f888d0470250eead40a53ef1f5:/libsyscall/custom/__syscall.s?ds=inline diff --git a/libsyscall/custom/__syscall.s b/libsyscall/custom/__syscall.s index dae18a831..f00894425 100644 --- a/libsyscall/custom/__syscall.s +++ b/libsyscall/custom/__syscall.s @@ -29,11 +29,7 @@ #include "SYS.h" -#if defined(__ppc__) || defined(__ppc64__) - -__SYSCALL(__syscall, syscall, 7) - -#elif defined(__i386__) +#if defined(__i386__) LEAF(___syscall, 0) popl %ecx // ret addr @@ -43,7 +39,7 @@ LEAF(___syscall, 0) movl (%esp),%edx // add one element to stack so pushl %ecx // caller "pop" will work jnb 2f - BRANCH_EXTERN(cerror) + BRANCH_EXTERN(tramp_cerror) 2: END(___syscall) @@ -52,7 +48,7 @@ END(___syscall) // For x86-64, the kernel slides the argument list for us. // The number of arguments here is variable, but our macros ignore // that value anyway. -__SYSCALL(__syscall, syscall, 0); +__SYSCALL(___syscall, syscall, 0); #else #error Unsupported architecture