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.6 (Berkeley) 06/01/90 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 #define PSEUDO(x,y) ENTRY(x); kcall $SYS_/**/y 20 #define CALL(x,y) calls $x, _/**/y 21 22 #define ASMSTR .asciz 23 24 .globl cerror 25