xref: /csrg-svn/lib/libc/mips/SYS.h (revision 52704)
1*52704Sbostic /*-
2*52704Sbostic  * Copyright (c) 1991 The Regents of the University of California.
3*52704Sbostic  * All rights reserved.
4*52704Sbostic  *
5*52704Sbostic  * This code is derived from software contributed to Berkeley by
6*52704Sbostic  * Ralph Campbell.
7*52704Sbostic  *
8*52704Sbostic  * %sccs.include.redist.c%
9*52704Sbostic  *
10*52704Sbostic  *	@(#)SYS.h	5.1 (Berkeley) 02/29/92
11*52704Sbostic  */
12*52704Sbostic 
13*52704Sbostic #include <sys/syscall.h>
14*52704Sbostic #include "DEFS.h"
15*52704Sbostic 
16*52704Sbostic /* vax/tahoe compat */
17*52704Sbostic #define	ret
18*52704Sbostic #define	r0	v0
19*52704Sbostic #define	r1	v1
20*52704Sbostic 
21*52704Sbostic #define	SYSCALL(x)	LEAF(x); li v0,SYS_/**/x; syscall; bne a3,zero,err; \
22*52704Sbostic 			j ra; err: j _cerror; END(x);
23*52704Sbostic #define	PSEUDO(x,y)	LEAF(x); li v0,SYS_/**/y; syscall; bne a3,zero,err; \
24*52704Sbostic 			j ra; err: j _cerror; END(x);
25