1*22061Sdist /* 2*22061Sdist * Copyright (c) 1983 Regents of the University of California. 3*22061Sdist * All rights reserved. The Berkeley software License Agreement 4*22061Sdist * specifies the terms and conditions for redistribution. 5*22061Sdist * 6*22061Sdist * @(#)SYS.h 5.1 (Berkeley) 06/05/85 7*22061Sdist */ 812357Ssam 912357Ssam #include <syscall.h> 1012357Ssam 1112357Ssam #ifdef PROF 1212357Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0; \ 1312357Ssam .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount 1412357Ssam #else 1512357Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0 1612357Ssam #endif PROF 1712357Ssam #define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err 1812357Ssam #define PSEUDO(x,y) ENTRY(x); chmk $SYS_/**/y 1912357Ssam #define CALL(x,y) calls $x, _/**/y 2012357Ssam 2112357Ssam .globl cerror 22