11.4Sskrll/*	$NetBSD: pipe.S,v 1.4 2020/05/05 06:20:55 skrll 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.2Sagc * 3. Neither the name of the University nor the names of its contributors
201.1Sfredette *    may be used to endorse or promote products derived from this software
211.1Sfredette *    without specific prior written permission.
221.1Sfredette *
231.1Sfredette * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
241.1Sfredette * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
251.1Sfredette * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
261.1Sfredette * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
271.1Sfredette * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
281.1Sfredette * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
291.1Sfredette * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
301.1Sfredette * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
311.1Sfredette * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
321.1Sfredette * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
331.1Sfredette * SUCH DAMAGE.
341.1Sfredette */
351.1Sfredette
361.1Sfredette#include "SYS.h"
371.1Sfredette
381.1Sfredette#if defined(LIBC_SCCS) && !defined(lint)
391.1Sfredette#if 0
401.1Sfredette	RCSID("from: @(#)pipe.s	5.1 (Berkeley) 5/12/90")
411.1Sfredette#else
421.4Sskrll	RCSID("$NetBSD: pipe.S,v 1.4 2020/05/05 06:20:55 skrll Exp $")
431.1Sfredette#endif
441.1Sfredette#endif /* LIBC_SCCS and not lint */
451.1Sfredette
461.1Sfredette#ifdef WEAK_ALIAS
471.1Sfredette	WEAK_ALIAS(pipe, _pipe)
481.1Sfredette#endif
491.1Sfredette
501.1SfredetteENTRY(_pipe,0)
511.3Smatt	stw	%arg0, HPPA_FRAME_ARG(0)(%sp)
521.1Sfredette	SYSCALL(pipe)
531.3Smatt	ldw	HPPA_FRAME_ARG(0)(%sp), %arg0
541.3Smatt	stw	%ret0, 0(%arg0)
551.3Smatt	stw	%ret1, 4(%arg0)
561.3Smatt	bv	%r0(%rp)
571.4Sskrll	 copy	%r0, %ret0
581.1SfredetteEXIT(_pipe)
59