Home | History | Annotate | Line # | Download | only in sys
pipe.S revision 1.6.2.1
      1 /*	$NetBSD: pipe.S,v 1.6.2.1 2002/08/01 03:28:02 nathanw Exp $	*/
      2 
      3 #include "SYS.h"
      4 
      5 #ifdef WEAK_ALIAS
      6 WEAK_ALIAS(pipe, _pipe)
      7 #endif
      8 
      9 ENTRY(_pipe)
     10 	mr	%r5,%r3		# save pointer
     11 	li	%r0,SYS_pipe
     12 	sc			# assume, that r5 is kept
     13 	bso	1f
     14 	stw	%r3,0(%r5)	# success, store fds
     15 	stw	%r4,4(%r5)
     16 	li	%r3,0
     17 	blr			# and return 0
     18 1:
     19 	b	PIC_PLT(_C_LABEL(__cerror))
     20