pipe.S revision 1.1
11.1Sfredette/* $NetBSD: pipe.S,v 1.1 2002/06/06 20:31:23 fredette Exp $ */ 21.1Sfredette 31.1Sfredette/*- 41.1Sfredette * Copyright (c) 1990 The Regents of the University of California. 51.1Sfredette * All rights reserved. 61.1Sfredette * 71.1Sfredette * This code is derived from software contributed to Berkeley by 81.1Sfredette * the Systems Programming Group of the University of Utah Computer 91.1Sfredette * Science Department. 101.1Sfredette * 111.1Sfredette * Redistribution and use in source and binary forms, with or without 121.1Sfredette * modification, are permitted provided that the following conditions 131.1Sfredette * are met: 141.1Sfredette * 1. Redistributions of source code must retain the above copyright 151.1Sfredette * notice, this list of conditions and the following disclaimer. 161.1Sfredette * 2. Redistributions in binary form must reproduce the above copyright 171.1Sfredette * notice, this list of conditions and the following disclaimer in the 181.1Sfredette * documentation and/or other materials provided with the distribution. 191.1Sfredette * 3. All advertising materials mentioning features or use of this software 201.1Sfredette * must display the following acknowledgement: 211.1Sfredette * This product includes software developed by the University of 221.1Sfredette * California, Berkeley and its contributors. 231.1Sfredette * 4. Neither the name of the University nor the names of its contributors 241.1Sfredette * may be used to endorse or promote products derived from this software 251.1Sfredette * without specific prior written permission. 261.1Sfredette * 271.1Sfredette * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 281.1Sfredette * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 291.1Sfredette * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 301.1Sfredette * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 311.1Sfredette * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 321.1Sfredette * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 331.1Sfredette * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 341.1Sfredette * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 351.1Sfredette * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 361.1Sfredette * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 371.1Sfredette * SUCH DAMAGE. 381.1Sfredette */ 391.1Sfredette 401.1Sfredette#include "SYS.h" 411.1Sfredette 421.1Sfredette#if defined(LIBC_SCCS) && !defined(lint) 431.1Sfredette#if 0 441.1Sfredette RCSID("from: @(#)pipe.s 5.1 (Berkeley) 5/12/90") 451.1Sfredette#else 461.1Sfredette RCSID("$NetBSD: pipe.S,v 1.1 2002/06/06 20:31:23 fredette Exp $") 471.1Sfredette#endif 481.1Sfredette#endif /* LIBC_SCCS and not lint */ 491.1Sfredette 501.1Sfredette#ifdef WEAK_ALIAS 511.1Sfredette WEAK_ALIAS(pipe, _pipe) 521.1Sfredette#endif 531.1Sfredette 541.1SfredetteENTRY(_pipe,0) 551.1Sfredette stw arg0, HPPA_FRAME_ARG(0)(sp) 561.1Sfredette SYSCALL(pipe) 571.1Sfredette ldw HPPA_FRAME_ARG(0)(sp), arg0 581.1Sfredette stw ret0, 0(arg0) 591.1Sfredette stw ret1, 4(arg0) 601.1Sfredette bv r0(rp) 611.1Sfredette copy r0, ret0 621.1SfredetteEXIT(_pipe) 63