xref: /csrg-svn/lib/libc/mips/SYS.h (revision 55709)
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*55709Sralph  *	@(#)SYS.h	5.2 (Berkeley) 07/26/92
1152704Sbostic  */
1252704Sbostic 
1352704Sbostic #include <sys/syscall.h>
14*55709Sralph #include <machine/machAsmDefs.h>
1552704Sbostic 
1652704Sbostic /* vax/tahoe compat */
1752704Sbostic #define	ret
1852704Sbostic #define	r0	v0
1952704Sbostic #define	r1	v1
2052704Sbostic 
2152704Sbostic #define	SYSCALL(x)	LEAF(x); li v0,SYS_/**/x; syscall; bne a3,zero,err; \
2252704Sbostic 			j ra; err: j _cerror; END(x);
2352704Sbostic #define	PSEUDO(x,y)	LEAF(x); li v0,SYS_/**/y; syscall; bne a3,zero,err; \
2452704Sbostic 			j ra; err: j _cerror; END(x);
25