X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..13f56ec4e58bf8687e2a68032c093c0213dd519b:/libsyscall/custom/__pipe.s diff --git a/libsyscall/custom/__pipe.s b/libsyscall/custom/__pipe.s index b0eaf9ea2..0131d476d 100644 --- a/libsyscall/custom/__pipe.s +++ b/libsyscall/custom/__pipe.s @@ -29,19 +29,9 @@ #include "SYS.h" -#if defined(__ppc__) || defined(__ppc64__) +#if defined(__i386__) -MI_ENTRY_POINT(___pipe) - mr r12,r3 // save fildes across syscall - SYSCALL_NONAME(pipe, 0) - stw r3,0(r12) - stw r4,4(r12) - li r3,0 - blr - -#elif defined(__i386__) - -PSEUDO_INT(__pipe, pipe, 0) +PSEUDO_INT(___pipe, pipe, 0) movl 4(%esp),%ecx movl %eax,(%ecx) movl %edx,4(%ecx) @@ -50,22 +40,12 @@ PSEUDO_INT(__pipe, pipe, 0) #elif defined(__x86_64__) -PSEUDO(__pipe, pipe, 0) +PSEUDO(___pipe, pipe, 0) movl %eax, (%rdi) movl %edx, 4(%rdi) xorl %eax, %eax ret -#elif defined(__arm__) - -MI_ENTRY_POINT(_pipe) - mov r3,r0 // save fildes across syscall - SYSCALL_NONAME(pipe, 0) - str r0, [r3, #0] - str r1, [r3, #4] - mov r0,#0 - bx lr - #else #error Unsupported architecture #endif