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