Deleted Added
sdiff udiff text old ( 71770 ) new ( 92991 )
full compact
1/* $FreeBSD: head/lib/libc/ia64/SYS.h 71770 2001-01-29 03:23:46Z deischen $ */
2/* From: NetBSD: SYS.h,v 1.5 1997/05/02 18:15:15 kleink Exp */
3
4/*
5 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Author: Chris G. Demetriou
9 *
10 * Permission to use, copy, modify and distribute this software and
11 * its documentation is hereby granted, provided that both the copyright
12 * notice and this permission notice appear in all copies of the
13 * software, derivative works or modified versions, and any portions
14 * thereof, and that both notices appear in supporting documentation.
15 *
16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 *
20 * Carnegie Mellon requests users of this software to return to
21 *
22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
23 * School of Computer Science
24 * Carnegie Mellon University
25 * Pittsburgh PA 15213-3890
26 *
27 * any improvements or extensions that they make and grant Carnegie the
28 * rights to redistribute these changes.
29 */
30
31#include <machine/asm.h>
32#include <sys/syscall.h>
33
34#define CALLSYS_ERROR(name) \
35 CALLSYS_NOERROR(name); \
36 cmp.ne p6,p0=r0,r10; \
37(p6) br.cond.sptk.few .cerror
38
39
40#define SYSCALL(name) \
41ENTRY(__sys_ ## name,0); /* XXX # of args? */ \
42 WEAK_ALIAS(name, __sys_ ## name); \
43 WEAK_ALIAS(_ ## name, __sys_ ## name); \
44 CALLSYS_ERROR(name)
45
46#define SYSCALL_NOERROR(name) \
47ENTRY(__sys_ ## name,0); /* XXX # of args? */ \
48 WEAK_ALIAS(name, __sys_ ## name); \
49 WEAK_ALIAS(_ ## name, __sys_ ## name); \
50 CALLSYS_NOERROR(name)
51
52
53#define RSYSCALL(name) \
54 SYSCALL(name); \
55 br.ret.sptk.few rp; \
56END(__sys_ ## name)
57
58#define RSYSCALL_NOERROR(name) \
59 SYSCALL_NOERROR(name); \
60 br.ret.sptk.few rp; \
61END(__sys_ ## name)
62
63
64#define PSEUDO(name) \
65ENTRY(__sys_ ## name,0); /* XXX # of args? */ \
66 WEAK_ALIAS(_ ## name, __sys_ ## name); \
67 CALLSYS_ERROR(name); \
68 br.ret.sptk.few rp; \
69END(__sys_ ## name);
70
71#define PSEUDO_NOERROR(name) \
72ENTRY(__sys_ ## name,0); /* XXX # of args? */ \
73 WEAK_ALIAS(_ ## name, __sys_ ## name); \
74 CALLSYS_NOERROR(name); \
75 br.ret.sptk.few rp; \
76END(__sys_ ## name);