Loading...
ppc/sys/pipe.s Libc-391.4.1 Libc-320.1.3
--- Libc/Libc-391.4.1/ppc/sys/pipe.s
+++ Libc/Libc-320.1.3/ppc/sys/pipe.s
@@ -24,10 +24,11 @@
 
 #import "SYS.h"
 
-MI_ENTRY_POINT(_pipe)
-    mr      r12,r3              // save fildes across syscall
+LEAF(_pipe)
+	stw	r3,ARG(1)(r1)		// preserve fildes on stack
 	SYSCALL_NONAME(pipe, 0)
-	stw     r3,0(r12)
-	stw     r4,4(r12)
-	li      r3,0
+	lwz	r11,ARG(1)(r1)		// restore fildes
+	stw	r3,0(r11)
+	stw	r4,4(r11)
+	li	r3,0
 	blr