1 /* $NetBSD: SYS.h,v 1.2 2010/03/22 02:17:23 mrg Exp $ */
3 #include <machine/asm.h>
4 #include <sys/syscall.h>
7 #define _DOSYSCALL(x) li %r0,(SYS_ ## x) ;\
10 #define _DOSYSCALL(x) li %r0,(SYS_/**/x) ;\
14 #define _SYSCALL_NOERROR(x,y) .text ;\
19 #define _SYSCALL(x,y) .text ;\
21 2: b PIC_PLT(_C_LABEL(__cerror));\
23 _SYSCALL_NOERROR(x,y) ;\
26 #define SYSCALL_NOERROR(x) _SYSCALL_NOERROR(x,x)
28 #define SYSCALL(x) _SYSCALL(x,x)
30 #define PSEUDO_NOERROR(x,y) _SYSCALL_NOERROR(x,y) ;\
33 #define PSEUDO(x,y) _SYSCALL_NOERROR(x,y) ;\
35 b PIC_PLT(_C_LABEL(__cerror));\
38 #define RSYSCALL_NOERROR(x) PSEUDO_NOERROR(x,x)
40 #define RSYSCALL(x) PSEUDO(x,x)
42 #define WSYSCALL(weak,strong) WEAK_ALIAS(weak,strong) ;\