Home | History | Annotate | Line # | Download | only in sys
pipe.S revision 1.5.10.1
      1  1.5.10.1   kleink /*	$NetBSD: pipe.S,v 1.5.10.1 2000/09/29 09:06:04 kleink Exp $	*/
      2       1.1  thorpej 
      3       1.1  thorpej #include "SYS.h"
      4       1.1  thorpej 
      5  1.5.10.1   kleink #ifdef WEAK_ALIAS
      6  1.5.10.1   kleink WEAK_ALIAS(pipe, _pipe)
      7  1.5.10.1   kleink #endif
      8  1.5.10.1   kleink 
      9  1.5.10.1   kleink ENTRY(_pipe)
     10       1.3       ws 	mr	5,3		# save pointer
     11       1.1  thorpej 	li	0,SYS_pipe
     12       1.1  thorpej 	sc			# assume, that r5 is kept
     13       1.1  thorpej 	bso	1f
     14       1.1  thorpej 	stw	3,0(5)		# success, store fds
     15       1.1  thorpej 	stw	4,4(5)
     16       1.1  thorpej 	li	3,0
     17       1.1  thorpej 	blr			# and return 0
     18       1.1  thorpej 1:
     19       1.5   kleink 	b	PIC_PLT(_C_LABEL(__cerror))
     20