X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..13f56ec4e58bf8687e2a68032c093c0213dd519b:/libsyscall/custom/__syscall.s?ds=sidebyside diff --git a/libsyscall/custom/__syscall.s b/libsyscall/custom/__syscall.s index 88f1f08e0..73735bd4b 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 @@ -52,11 +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); - -#elif defined(__arm__) - -__SYSCALL(__syscall, syscall, 7) +__SYSCALL(___syscall, syscall, 0); #else #error Unsupported architecture