1*0a6a1f1dSLionel Sambuc/* $NetBSD: pipe.S,v 1.2 2014/08/23 02:24:22 matt Exp $ */ 22fe8fb19SBen Gras 32fe8fb19SBen Gras#include "SYS.h" 42fe8fb19SBen Gras 52fe8fb19SBen Gras#ifdef WEAK_ALIAS 62fe8fb19SBen GrasWEAK_ALIAS(pipe, _pipe) 72fe8fb19SBen Gras#endif 82fe8fb19SBen Gras 92fe8fb19SBen GrasENTRY(_pipe) 102fe8fb19SBen Gras mr %r5,%r3 # save pointer 11*0a6a1f1dSLionel Sambuc _DOSYSCALL(pipe) # assume, that r5 is kept 122fe8fb19SBen Gras bso 1f 13*0a6a1f1dSLionel Sambuc stint %r3,0(%r5) # success, store fds 14*0a6a1f1dSLionel Sambuc stint %r4,4(%r5) 152fe8fb19SBen Gras li %r3,0 162fe8fb19SBen Gras blr # and return 0 172fe8fb19SBen Gras1: 18*0a6a1f1dSLionel Sambuc BRANCH_TO_CERROR() 19*0a6a1f1dSLionel SambucEND(_pipe) 20