122061Sdist /* 222061Sdist * Copyright (c) 1983 Regents of the University of California. 334390Sbostic * All rights reserved. 422061Sdist * 5*42635Sbostic * %sccs.include.redist.c% 634390Sbostic * 7*42635Sbostic * @(#)SYS.h 5.6 (Berkeley) 06/01/90 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 1812357Ssam #define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err 1912357Ssam #define PSEUDO(x,y) ENTRY(x); chmk $SYS_/**/y 2012357Ssam #define CALL(x,y) calls $x, _/**/y 2112357Ssam 2242471Sbostic #define ASMSTR .asciz 2342471Sbostic 2412357Ssam .globl cerror 25