1: /* 2: * Copyright (c) 1987 Regents of the University of California. 3: * All rights reserved. The Berkeley software License Agreement 4: * specifies the terms and conditions for redistribution. 5: */ 6: 7: #ifdef SYSLIBC_SCCS 8: _sccsid: <@(#)pipe.s 2.6 (2.11BSD GTE) 1995/05/08\0> 9: .even 10: #endif SYSLIBC_SCCS 11: 12: /* 13: * XXX - this routine can't use SYSCALL!!! 14: */ 15: #include "SYS.h" 16: 17: ENTRY(pipe) 18: SYS(pipe) / / trap 42 -> [kernel] -> syscall() -> via sysent[] -> handler: pipe / 19: bes 1f 20: mov r2,-(sp) 21: mov 4(sp),r2 22: mov r0,(r2)+ 23: mov r1,(r2) 24: mov (sp)+,r2 25: clr r0 26: rts pc 27: 1: 28: jmp x_error