1 /* From: NetBSD: SYS.h,v 1.5 1997/05/02 18:15:15 kleink Exp */
4 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
7 * Author: Chris G. Demetriou
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.
32 #include <machine/asm.h>
33 #include <sys/syscall.h>
35 #define CALLSYS_ERROR(name) \
36 CALLSYS_NOERROR(name); \
37 br gp, LLABEL(name,0); \
40 beq a3, LLABEL(name,1); \
45 #define SYSCALL(name) \
46 LEAF(__CONCAT(__sys_,name),0); /* XXX # of args? */ \
47 WEAK_ALIAS(name, __CONCAT(__sys_,name)); \
48 WEAK_ALIAS(__CONCAT(_,name), __CONCAT(__sys_,name)); \
51 #define SYSCALL_NOERROR(name) \
52 LEAF(__CONCAT(__sys_,name),0); /* XXX # of args? */ \
53 WEAK_ALIAS(name, __CONCAT(__sys_,name)); \
54 WEAK_ALIAS(__CONCAT(_,name), __CONCAT(__sys_,name)); \
58 #define RSYSCALL(name) \
61 END(__CONCAT(__sys_,name))
63 #define RSYSCALL_NOERROR(name) \
64 SYSCALL_NOERROR(name); \
66 END(__CONCAT(__sys_,name))
69 #define PSEUDO(name) \
70 LEAF(__CONCAT(__sys_,name),0); /* XXX # of args? */ \
71 WEAK_ALIAS(__CONCAT(_,name), __CONCAT(__sys_, name)); \
72 CALLSYS_ERROR(name); \
74 END(__CONCAT(__sys_,name))