1*ec3c02b8Suwe/* $NetBSD: pipe.S,v 1.7 2006/01/06 05:23:46 uwe Exp $ */ 295d875fbSmsaitoh 395d875fbSmsaitoh/*- 495d875fbSmsaitoh * Copyright (c) 1990 The Regents of the University of California. 595d875fbSmsaitoh * All rights reserved. 695d875fbSmsaitoh * 795d875fbSmsaitoh * This code is derived from software contributed to Berkeley by 895d875fbSmsaitoh * William Jolitz. 995d875fbSmsaitoh * 1095d875fbSmsaitoh * Redistribution and use in source and binary forms, with or without 1195d875fbSmsaitoh * modification, are permitted provided that the following conditions 1295d875fbSmsaitoh * are met: 1395d875fbSmsaitoh * 1. Redistributions of source code must retain the above copyright 1495d875fbSmsaitoh * notice, this list of conditions and the following disclaimer. 1595d875fbSmsaitoh * 2. Redistributions in binary form must reproduce the above copyright 1695d875fbSmsaitoh * notice, this list of conditions and the following disclaimer in the 1795d875fbSmsaitoh * documentation and/or other materials provided with the distribution. 18eb7c1594Sagc * 3. Neither the name of the University nor the names of its contributors 1995d875fbSmsaitoh * may be used to endorse or promote products derived from this software 2095d875fbSmsaitoh * without specific prior written permission. 2195d875fbSmsaitoh * 2295d875fbSmsaitoh * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2395d875fbSmsaitoh * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2495d875fbSmsaitoh * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2595d875fbSmsaitoh * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2695d875fbSmsaitoh * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2795d875fbSmsaitoh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2895d875fbSmsaitoh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2995d875fbSmsaitoh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3095d875fbSmsaitoh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3195d875fbSmsaitoh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3295d875fbSmsaitoh * SUCH DAMAGE. 3395d875fbSmsaitoh * 3495d875fbSmsaitoh * from: @(#)pipe.s 5.1 (Berkeley) 4/23/90 3595d875fbSmsaitoh */ 3695d875fbSmsaitoh 3795d875fbSmsaitoh#include <machine/asm.h> 3895d875fbSmsaitoh#if defined(SYSLIBC_SCCS) && !defined(lint) 39*ec3c02b8Suwe RCSID("$NetBSD: pipe.S,v 1.7 2006/01/06 05:23:46 uwe Exp $") 4095d875fbSmsaitoh#endif /* SYSLIBC_SCCS and not lint */ 4195d875fbSmsaitoh 4295d875fbSmsaitoh#include "SYS.h" 4395d875fbSmsaitoh 4482fd76bbSkleink#ifdef WEAK_ALIAS 4582fd76bbSkleinkWEAK_ALIAS(pipe,_pipe) 4682fd76bbSkleink#endif 4782fd76bbSkleink 4882fd76bbSkleink_SYSCALL(_pipe,pipe) 49*ec3c02b8Suwe mov.l r0, @r4 50*ec3c02b8Suwe mov.l r1, @(4, r4) 5195d875fbSmsaitoh rts 52*ec3c02b8Suwe mov #0, r0 53