xref: /csrg-svn/lib/libc/vax/SYS.h (revision 34334)
122061Sdist /*
222061Sdist  * Copyright (c) 1983 Regents of the University of California.
322061Sdist  * All rights reserved.  The Berkeley software License Agreement
422061Sdist  * specifies the terms and conditions for redistribution.
522061Sdist  *
6*34334Sbostic  *	@(#)SYS.h	5.2 (Berkeley) 05/19/88
722061Sdist  */
812357Ssam 
9*34334Sbostic #include <sys/syscall.h>
1012357Ssam 
1112357Ssam #ifdef PROF
1212357Ssam #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0; \
1312357Ssam 			.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
1412357Ssam #else
1512357Ssam #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0
1612357Ssam #endif PROF
1712357Ssam #define	SYSCALL(x)	err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err
1812357Ssam #define	PSEUDO(x,y)	ENTRY(x); chmk $SYS_/**/y
1912357Ssam #define	CALL(x,y)	calls $x, _/**/y
2012357Ssam 
2112357Ssam 	.globl	cerror
22