1 /* $NetBSD: SYS.h,v 1.12 2011/01/15 07:31:12 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 _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) ;\
33 #define PSEUDO(x,y) _SYSCALL_NOERROR(x,y) ;\
35 b _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) ;\