152704Sbostic /*- 252704Sbostic * Copyright (c) 1991 The Regents of the University of California. 352704Sbostic * All rights reserved. 452704Sbostic * 552704Sbostic * This code is derived from software contributed to Berkeley by 652704Sbostic * Ralph Campbell. 752704Sbostic * 852704Sbostic * %sccs.include.redist.c% 952704Sbostic * 10*57855Sralph * @(#)SYS.h 5.3 (Berkeley) 02/04/93 1152704Sbostic */ 1252704Sbostic 1352704Sbostic #include <sys/syscall.h> 1455709Sralph #include <machine/machAsmDefs.h> 1552704Sbostic 16*57855Sralph #ifdef __STDC__ 17*57855Sralph #define RSYSCALL(x) LEAF(x); li v0,SYS_ ## x; syscall; bne a3,zero,err; \ 1852704Sbostic j ra; err: j _cerror; END(x); 19*57855Sralph #define PSEUDO(x,y) LEAF(x); li v0,SYS_ ## y; syscall; bne a3,zero,err; \ 20*57855Sralph j ra; err: j _cerror; END(x); 21*57855Sralph #else 22*57855Sralph #define RSYSCALL(x) LEAF(x); li v0,SYS_/**/x; syscall; bne a3,zero,err; \ 23*57855Sralph j ra; err: j _cerror; END(x); 2452704Sbostic #define PSEUDO(x,y) LEAF(x); li v0,SYS_/**/y; syscall; bne a3,zero,err; \ 2552704Sbostic j ra; err: j _cerror; END(x); 26*57855Sralph #endif 27