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