pipe.S revision 1.2 1 1.2 cherry /* $NetBSD: pipe.S,v 1.2 2006/09/23 17:39:34 cherry Exp $ */
2 1.2 cherry
3 1.2 cherry /*
4 1.2 cherry * Copyright (c) 1994, 1995 Carnegie-Mellon University.
5 1.2 cherry * All rights reserved.
6 1.2 cherry *
7 1.2 cherry * Author: Chris G. Demetriou
8 1.2 cherry *
9 1.2 cherry * Permission to use, copy, modify and distribute this software and
10 1.2 cherry * its documentation is hereby granted, provided that both the copyright
11 1.2 cherry * notice and this permission notice appear in all copies of the
12 1.2 cherry * software, derivative works or modified versions, and any portions
13 1.2 cherry * thereof, and that both notices appear in supporting documentation.
14 1.2 cherry *
15 1.2 cherry * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 1.2 cherry * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 1.2 cherry * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
18 1.2 cherry *
19 1.2 cherry * Carnegie Mellon requests users of this software to return to
20 1.2 cherry *
21 1.2 cherry * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
22 1.2 cherry * School of Computer Science
23 1.2 cherry * Carnegie Mellon University
24 1.2 cherry * Pittsburgh PA 15213-3890
25 1.2 cherry *
26 1.2 cherry * any improvements or extensions that they make and grant Carnegie the
27 1.2 cherry * rights to redistribute these changes.
28 1.2 cherry */
29 1.2 cherry
30 1.2 cherry #include <machine/asm.h>
31 1.2 cherry /* __FBSDID("$FreeBSD: src/lib/libc/ia64/sys/pipe.S,v 1.4 2003/05/16 21:26:39 marcel Exp $"); */
32 1.2 cherry
33 1.2 cherry #include "SYS.h"
34 1.2 cherry
35 1.2 cherry #ifdef WEAK_ALIAS
36 1.2 cherry WEAK_ALIAS(pipe, _pipe)
37 1.2 cherry #endif
38 1.2 cherry /* XXX: Relook param passing */
39 1.1 cherry
40 1.2 cherry ENTRY(_pipe, 1)
41 1.2 cherry st8 [sp]=r32
42 1.2 cherry CALLSYS_ERROR(pipe)
43 1.2 cherry ld8 r14=[sp]
44 1.2 cherry ;;
45 1.2 cherry st4 [r14]=ret0,4
46 1.2 cherry ;;
47 1.2 cherry st4 [r14]=ret1
48 1.2 cherry mov ret0=0
49 1.2 cherry br.ret.sptk.few rp
50 1.2 cherry END(_pipe)
51