1 /* $NetBSD: SYS.h,v 1.11 2002/07/30 06:07:56 matt 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));\
22 _SYSCALL_NOERROR(x,y) ;\
25 #define SYSCALL_NOERROR(x) _SYSCALL_NOERROR(x,x)
27 #define SYSCALL(x) _SYSCALL(x,x)
29 #define PSEUDO_NOERROR(x,y) _SYSCALL_NOERROR(x,y) ;\
32 #define PSEUDO(x,y) _SYSCALL_NOERROR(x,y) ;\
34 b PIC_PLT(_C_LABEL(__cerror))
36 #define RSYSCALL_NOERROR(x) PSEUDO_NOERROR(x,x)
38 #define RSYSCALL(x) PSEUDO(x,x)
40 #define WSYSCALL(weak,strong) WEAK_ALIAS(weak,strong) ;\