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.8 (Berkeley) 05/07/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; 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