122061Sdist /* 222061Sdist * Copyright (c) 1983 Regents of the University of California. 334390Sbostic * All rights reserved. 422061Sdist * 542635Sbostic * %sccs.include.redist.c% 634390Sbostic * 7*49359Sbostic * @(#)SYS.h 5.8 (Berkeley) 05/07/91 822061Sdist */ 912357Ssam 1034334Sbostic #include <sys/syscall.h> 1112357Ssam 1212357Ssam #ifdef PROF 1312357Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0; \ 1412357Ssam .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount 1512357Ssam #else 1612357Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0 1712357Ssam #endif PROF 18*49359Sbostic #define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err 19*49359Sbostic #define RSYSCALL(x) SYSCALL(x); ret 2048805Storek #define PSEUDO(x,y) ENTRY(x); chmk $SYS_/**/y; ret 2112357Ssam #define CALL(x,y) calls $x, _/**/y 2212357Ssam 2342471Sbostic #define ASMSTR .asciz 2442471Sbostic 2512357Ssam .globl cerror 26