xref: /original-bsd/lib/libc/vax/SYS.h (revision c3e32dec)
1 /*
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)SYS.h	8.1 (Berkeley) 06/04/93
8  */
9 
10 #include <sys/syscall.h>
11 
12 #ifdef PROF
13 #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0; \
14 			.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
15 #else
16 #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0
17 #endif PROF
18 #define	SYSCALL(x)	err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err
19 #define	RSYSCALL(x)	SYSCALL(x); ret
20 #define	PSEUDO(x,y)	ENTRY(x); chmk $SYS_/**/y; ret
21 #define	CALL(x,y)	calls $x, _/**/y
22 
23 #define	ASMSTR		.asciz
24 
25 	.globl	cerror
26