Loading...
ppc/sys/pipe.s Libc-391 Libc-320
--- Libc/Libc-391/ppc/sys/pipe.s
+++ Libc/Libc-320/ppc/sys/pipe.s
@@ -2,6 +2,8 @@
  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
+ * 
+ * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
  * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
@@ -24,10 +26,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