Home | History | Annotate | Line # | Download | only in sys
      1 /*	$NetBSD: pipe.S,v 1.2 2014/08/23 02:24:22 matt 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 	_DOSYSCALL(pipe)	# assume, that r5 is kept
     12 	bso	1f
     13 	stint	%r3,0(%r5)	# success, store fds
     14 	stint	%r4,4(%r5)
     15 	li	%r3,0
     16 	blr			# and return 0
     17 1:
     18 	BRANCH_TO_CERROR()
     19 END(_pipe)
     20