xref: /original-bsd/lib/libc/vax/SYS.h (revision 2ce9ec30)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that this notice is preserved and that due credit is given
7  * to the University of California at Berkeley. The name of the University
8  * may not be used to endorse or promote products derived from this
9  * software without specific prior written permission. This software
10  * is provided ``as is'' without express or implied warranty.
11  *
12  *	@(#)SYS.h	5.3 (Berkeley) 05/20/88
13  */
14 
15 #include <sys/syscall.h>
16 
17 #ifdef PROF
18 #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0; \
19 			.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
20 #else
21 #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0
22 #endif PROF
23 #define	SYSCALL(x)	err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err
24 #define	PSEUDO(x,y)	ENTRY(x); chmk $SYS_/**/y
25 #define	CALL(x,y)	calls $x, _/**/y
26 
27 	.globl	cerror
28