Remove building with NOCRYPTO option
[minix3.git] / lib / libc / arch / ia64 / SYS.h
blob8ee7fb443649f58fe695a103bf43ae4f4fdb7147
1 /* $NetBSD: SYS.h,v 1.1 2006/09/10 21:22:33 cherry Exp $ */
3 /*
4 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
5 * All rights reserved.
7 * Author: Chris G. Demetriou
8 *
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19 * Carnegie Mellon requests users of this software to return to
21 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
22 * School of Computer Science
23 * Carnegie Mellon University
24 * Pittsburgh PA 15213-3890
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
30 #include <sys/cdefs.h>
32 #include <machine/asm.h>
33 #include <sys/syscall.h>
35 #define RET { br.ret.sptk.few rp;; }
37 #define CALLSYS_ERROR(name) \
38 CALLSYS_NOERROR(name) \
39 { cmp.ne p6,p0=r0,r10; \
40 (p6) br.cond.sptk.few __cerror ;; }
42 #define SYSCALL(name) \
43 ENTRY(name,0); /* XXX # of args? */ \
44 CALLSYS_ERROR(name)
46 #define SYSCALL_NOERROR(name) \
47 ENTRY(name,0); /* XXX # of args? */ \
48 CALLSYS_NOERROR(name)
50 #define PSEUDO(label,name) \
51 ENTRY(label,0); /* XXX # of args? */ \
52 CALLSYS_ERROR(name); \
53 RET; \
54 END(label);
56 #define PSEUDO_NOERROR(label,name) \
57 ENTRY(label,0); /* XXX # of args? */ \
58 CALLSYS_NOERROR(name); \
59 RET; \
60 END(label);
62 #define RSYSCALL(name) \
63 SYSCALL(name); \
64 RET; \
65 END(name)
67 #define RSYSCALL_NOERROR(name) \
68 SYSCALL_NOERROR(name); \
69 RET; \
70 END(name)
72 #define WSYSCALL(weak,strong) \
73 WEAK_ALIAS(weak,strong); \
74 PSEUDO(strong,weak)