Home | History | Annotate | Line # | Download | only in sys
      1  1.1  matt /*	$NetBSD: pipe.S,v 1.1 2014/09/03 19:34:26 matt Exp $	*/
      2  1.1  matt 
      3  1.1  matt #include "SYS.h"
      4  1.1  matt 
      5  1.1  matt #if defined(LIBC_SCCS) && !defined(lint)
      6  1.1  matt __RCSID("$NetBSD: pipe.S,v 1.1 2014/09/03 19:34:26 matt Exp $")
      7  1.1  matt #endif /* LIBC_SCCS && !lint */
      8  1.1  matt 
      9  1.1  matt #ifdef WEAK_ALIAS
     10  1.1  matt WEAK_ALIAS(pipe, _pipe)
     11  1.1  matt #endif
     12  1.1  matt 
     13  1.1  matt ENTRY(_pipe)
     14  1.1  matt 	l.or	r5,r3,r0	# save pointer
     15  1.1  matt 	_DOSYSCALL(pipe)	# assume, that r5 is kept
     16  1.1  matt 	l.bf	_C_LABEL(__cerror)
     17  1.1  matt 	l.nop
     18  1.1  matt 	l.sw	0(r5),r11	# success, store fds
     19  1.1  matt 	l.sw	4(r5),r12
     20  1.1  matt 	l.xor	r11,r11,r11
     21  1.1  matt 	l.jr	lr		# and return 0
     22  1.1  matt 	l.nop
     23  1.1  matt END(_pipe)
     24