122061Sdist /* 222061Sdist * Copyright (c) 1983 Regents of the University of California. 3*34390Sbostic * All rights reserved. 422061Sdist * 5*34390Sbostic * Redistribution and use in source and binary forms are permitted 6*34390Sbostic * provided that this notice is preserved and that due credit is given 7*34390Sbostic * to the University of California at Berkeley. The name of the University 8*34390Sbostic * may not be used to endorse or promote products derived from this 9*34390Sbostic * software without specific prior written permission. This software 10*34390Sbostic * is provided ``as is'' without express or implied warranty. 11*34390Sbostic * 12*34390Sbostic * @(#)SYS.h 5.3 (Berkeley) 05/20/88 1322061Sdist */ 1412357Ssam 1534334Sbostic #include <sys/syscall.h> 1612357Ssam 1712357Ssam #ifdef PROF 1812357Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0; \ 1912357Ssam .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount 2012357Ssam #else 2112357Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0 2212357Ssam #endif PROF 2312357Ssam #define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err 2412357Ssam #define PSEUDO(x,y) ENTRY(x); chmk $SYS_/**/y 2512357Ssam #define CALL(x,y) calls $x, _/**/y 2612357Ssam 2712357Ssam .globl cerror 28