1*2af01421Sskrll/* $NetBSD: pipe.S,v 1.4 2020/05/05 06:20:55 skrll Exp $ */ 202ac1ae2Sfredette 302ac1ae2Sfredette/*- 402ac1ae2Sfredette * Copyright (c) 1990 The Regents of the University of California. 502ac1ae2Sfredette * All rights reserved. 602ac1ae2Sfredette * 702ac1ae2Sfredette * This code is derived from software contributed to Berkeley by 802ac1ae2Sfredette * the Systems Programming Group of the University of Utah Computer 902ac1ae2Sfredette * Science Department. 1002ac1ae2Sfredette * 1102ac1ae2Sfredette * Redistribution and use in source and binary forms, with or without 1202ac1ae2Sfredette * modification, are permitted provided that the following conditions 1302ac1ae2Sfredette * are met: 1402ac1ae2Sfredette * 1. Redistributions of source code must retain the above copyright 1502ac1ae2Sfredette * notice, this list of conditions and the following disclaimer. 1602ac1ae2Sfredette * 2. Redistributions in binary form must reproduce the above copyright 1702ac1ae2Sfredette * notice, this list of conditions and the following disclaimer in the 1802ac1ae2Sfredette * documentation and/or other materials provided with the distribution. 19eb7c1594Sagc * 3. Neither the name of the University nor the names of its contributors 2002ac1ae2Sfredette * may be used to endorse or promote products derived from this software 2102ac1ae2Sfredette * without specific prior written permission. 2202ac1ae2Sfredette * 2302ac1ae2Sfredette * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2402ac1ae2Sfredette * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2502ac1ae2Sfredette * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2602ac1ae2Sfredette * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2702ac1ae2Sfredette * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2802ac1ae2Sfredette * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2902ac1ae2Sfredette * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3002ac1ae2Sfredette * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3102ac1ae2Sfredette * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3202ac1ae2Sfredette * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3302ac1ae2Sfredette * SUCH DAMAGE. 3402ac1ae2Sfredette */ 3502ac1ae2Sfredette 3602ac1ae2Sfredette#include "SYS.h" 3702ac1ae2Sfredette 3802ac1ae2Sfredette#if defined(LIBC_SCCS) && !defined(lint) 3902ac1ae2Sfredette#if 0 4002ac1ae2Sfredette RCSID("from: @(#)pipe.s 5.1 (Berkeley) 5/12/90") 4102ac1ae2Sfredette#else 42*2af01421Sskrll RCSID("$NetBSD: pipe.S,v 1.4 2020/05/05 06:20:55 skrll Exp $") 4302ac1ae2Sfredette#endif 4402ac1ae2Sfredette#endif /* LIBC_SCCS and not lint */ 4502ac1ae2Sfredette 4602ac1ae2Sfredette#ifdef WEAK_ALIAS 4702ac1ae2Sfredette WEAK_ALIAS(pipe, _pipe) 4802ac1ae2Sfredette#endif 4902ac1ae2Sfredette 5002ac1ae2SfredetteENTRY(_pipe,0) 51ed9d4336Smatt stw %arg0, HPPA_FRAME_ARG(0)(%sp) 5202ac1ae2Sfredette SYSCALL(pipe) 53ed9d4336Smatt ldw HPPA_FRAME_ARG(0)(%sp), %arg0 54ed9d4336Smatt stw %ret0, 0(%arg0) 55ed9d4336Smatt stw %ret1, 4(%arg0) 56ed9d4336Smatt bv %r0(%rp) 57ed9d4336Smatt copy %r0, %ret0 5802ac1ae2SfredetteEXIT(_pipe) 59