1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)SYS.h 5.7 (Berkeley) 04/28/91 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; pushl $1b; callf $8,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); kcall $SYS_/**/x; jcs err; \ 19 ret 20 #define PSEUDO(x,y) ENTRY(x); kcall $SYS_/**/y; ret 21 #define CALL(x,y) calls $x, _/**/y 22 23 #define ASMSTR .asciz 24 25 .globl cerror 26