X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/libsyscall/custom/__pipe.s diff --git a/libsyscall/custom/__pipe.s b/libsyscall/custom/__pipe.s index d375dddbd..0c527d5ea 100644 --- a/libsyscall/custom/__pipe.s +++ b/libsyscall/custom/__pipe.s @@ -46,6 +46,25 @@ PSEUDO(___pipe, pipe, 0, cerror_nocancel) xorl %eax, %eax ret +#elif defined(__arm__) + +MI_ENTRY_POINT(___pipe) + mov r3,r0 // save fildes across syscall + SYSCALL_NONAME(pipe, 0, cerror_nocancel) + str r0, [r3, #0] + str r1, [r3, #4] + mov r0,#0 + bx lr + +#elif defined(__arm64__) + +MI_ENTRY_POINT(___pipe) + mov x9, x0 // Stash FD array + SYSCALL_NONAME(pipe, 0, cerror_nocancel) + stp w0, w1, [x9] // Save results + mov x0, #0 // Success + ret // Done + #else #error Unsupported architecture #endif