1*94258182Smatt/* $NetBSD: pipe.S,v 1.8 2013/07/16 22:16:53 matt Exp $ */ 26cdbd4c2Sthorpej 375d4ac97Spaulus/*- 475d4ac97Spaulus * Copyright (c) 1990 The Regents of the University of California. 575d4ac97Spaulus * All rights reserved. 675d4ac97Spaulus * 775d4ac97Spaulus * This code is derived from software contributed to Berkeley by 875d4ac97Spaulus * the Systems Programming Group of the University of Utah Computer 975d4ac97Spaulus * Science Department. 1075d4ac97Spaulus * 1175d4ac97Spaulus * Redistribution and use in source and binary forms, with or without 1275d4ac97Spaulus * modification, are permitted provided that the following conditions 1375d4ac97Spaulus * are met: 1475d4ac97Spaulus * 1. Redistributions of source code must retain the above copyright 1575d4ac97Spaulus * notice, this list of conditions and the following disclaimer. 1675d4ac97Spaulus * 2. Redistributions in binary form must reproduce the above copyright 1775d4ac97Spaulus * notice, this list of conditions and the following disclaimer in the 1875d4ac97Spaulus * documentation and/or other materials provided with the distribution. 19eb7c1594Sagc * 3. Neither the name of the University nor the names of its contributors 2075d4ac97Spaulus * may be used to endorse or promote products derived from this software 2175d4ac97Spaulus * without specific prior written permission. 2275d4ac97Spaulus * 2375d4ac97Spaulus * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2475d4ac97Spaulus * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2575d4ac97Spaulus * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2675d4ac97Spaulus * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2775d4ac97Spaulus * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2875d4ac97Spaulus * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2975d4ac97Spaulus * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3075d4ac97Spaulus * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3175d4ac97Spaulus * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3275d4ac97Spaulus * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3375d4ac97Spaulus * SUCH DAMAGE. 3475d4ac97Spaulus */ 3575d4ac97Spaulus 3675d4ac97Spaulus#include "SYS.h" 3775d4ac97Spaulus 386cdbd4c2Sthorpej#if defined(LIBC_SCCS) && !defined(lint) 396cdbd4c2Sthorpej#if 0 406cdbd4c2Sthorpej RCSID("from: @(#)pipe.s 5.1 (Berkeley) 5/12/90") 416cdbd4c2Sthorpej#else 42*94258182Smatt RCSID("$NetBSD: pipe.S,v 1.8 2013/07/16 22:16:53 matt Exp $") 436cdbd4c2Sthorpej#endif 446cdbd4c2Sthorpej#endif /* LIBC_SCCS and not lint */ 456cdbd4c2Sthorpej 4682fd76bbSkleink#ifdef WEAK_ALIAS 4782fd76bbSkleinkWEAK_ALIAS(pipe, _pipe) 4882fd76bbSkleink#endif 4982fd76bbSkleink 5082fd76bbSkleink_SYSCALL(_pipe,pipe) 5107a0a325Smatt movl 4(%sp),%a0 5207a0a325Smatt movl %d0,(%a0)+ 5307a0a325Smatt movl %d1,(%a0) 543b435a73Sthorpej clrl %d0 5575d4ac97Spaulus rts 56*94258182SmattEND(_pipe) 57