Home | History | Annotate | Line # | Download | only in sys
pipe.S revision 1.2
      1  1.2  matt /*	$NetBSD: pipe.S,v 1.2 2014/08/23 02:24:22 matt Exp $	*/
      2  1.1  ross 
      3  1.1  ross #include "SYS.h"
      4  1.1  ross 
      5  1.1  ross #ifdef WEAK_ALIAS
      6  1.1  ross WEAK_ALIAS(pipe, _pipe)
      7  1.1  ross #endif
      8  1.1  ross 
      9  1.1  ross ENTRY(_pipe)
     10  1.1  ross 	mr	%r5,%r3		# save pointer
     11  1.2  matt 	_DOSYSCALL(pipe)	# assume, that r5 is kept
     12  1.1  ross 	bso	1f
     13  1.2  matt 	stint	%r3,0(%r5)	# success, store fds
     14  1.2  matt 	stint	%r4,4(%r5)
     15  1.1  ross 	li	%r3,0
     16  1.1  ross 	blr			# and return 0
     17  1.1  ross 1:
     18  1.2  matt 	BRANCH_TO_CERROR()
     19  1.2  matt END(_pipe)
     20