xref: /csrg-svn/lib/libc/vax/SYS.h (revision 61231)
122061Sdist /*
2*61231Sbostic  * Copyright (c) 1983, 1993
3*61231Sbostic  *	The Regents of the University of California.  All rights reserved.
422061Sdist  *
542635Sbostic  * %sccs.include.redist.c%
634390Sbostic  *
7*61231Sbostic  *	@(#)SYS.h	8.1 (Berkeley) 06/04/93
822061Sdist  */
912357Ssam 
1034334Sbostic #include <sys/syscall.h>
1112357Ssam 
1212357Ssam #ifdef PROF
1312357Ssam #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0; \
1412357Ssam 			.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
1512357Ssam #else
1612357Ssam #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0
1712357Ssam #endif PROF
1849359Sbostic #define	SYSCALL(x)	err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err
1949359Sbostic #define	RSYSCALL(x)	SYSCALL(x); ret
2048805Storek #define	PSEUDO(x,y)	ENTRY(x); chmk $SYS_/**/y; ret
2112357Ssam #define	CALL(x,y)	calls $x, _/**/y
2212357Ssam 
2342471Sbostic #define	ASMSTR		.asciz
2442471Sbostic 
2512357Ssam 	.globl	cerror
26