xref: /csrg-svn/lib/libc/tahoe/SYS.h (revision 34333)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)SYS.h	5.2 (Berkeley) 05/19/88
7  */
8 
9 #include <sys/syscall.h>
10 
11 #ifdef PROF
12 #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0; \
13 			.data; 1:; .long 0; .text; pushl $1b; callf $8,mcount
14 #else
15 #define	ENTRY(x)	.globl _/**/x; .align 2; _/**/x: .word 0
16 #endif PROF
17 #define	SYSCALL(x)	err: jmp cerror; ENTRY(x); kcall $SYS_/**/x; jcs err
18 #define	PSEUDO(x,y)	ENTRY(x); kcall $SYS_/**/y
19 #define	CALL(x,y)	calls $x, _/**/y
20 
21 	.globl	cerror
22