1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ralph Campbell. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)SYS.h 8.1 (Berkeley) 06/04/93 11 */ 12 13 #include <sys/syscall.h> 14 #include <machine/machAsmDefs.h> 15 16 #ifdef __STDC__ 17 #define RSYSCALL(x) LEAF(x); li v0,SYS_ ## x; syscall; bne a3,zero,err; \ 18 j ra; err: j _cerror; END(x); 19 #define PSEUDO(x,y) LEAF(x); li v0,SYS_ ## y; syscall; bne a3,zero,err; \ 20 j ra; err: j _cerror; END(x); 21 #else 22 #define RSYSCALL(x) LEAF(x); li v0,SYS_/**/x; syscall; bne a3,zero,err; \ 23 j ra; err: j _cerror; END(x); 24 #define PSEUDO(x,y) LEAF(x); li v0,SYS_/**/y; syscall; bne a3,zero,err; \ 25 j ra; err: j _cerror; END(x); 26 #endif 27