1/* $NetBSD: pipe.S,v 1.1 2006/07/01 16:37:20 ross Exp $ */ 2 3#include "SYS.h" 4 5#ifdef WEAK_ALIAS 6WEAK_ALIAS(pipe, _pipe) 7#endif 8 9ENTRY(_pipe) 10 mr %r5,%r3 # save pointer 11 _DOSYSCALL(pipe) # assume, that r5 is kept 12 bso 1f 13 stint %r3,0(%r5) # success, store fds 14 stint %r4,4(%r5) 15 li %r3,0 16 blr # and return 0 171: 18 BRANCH_TO_CERROR() 19END(_pipe) 20