129438Ssam /* 2*61181Sbostic * Copyright (c) 1983, 1993 3*61181Sbostic * The Regents of the University of California. All rights reserved. 429438Ssam * 542635Sbostic * %sccs.include.redist.c% 634388Sbostic * 7*61181Sbostic * @(#)SYS.h 8.1 (Berkeley) 06/04/93 829438Ssam */ 929438Ssam 1034333Sbostic #include <sys/syscall.h> 1129438Ssam 1229438Ssam #ifdef PROF 1329438Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0; \ 1429438Ssam .data; 1:; .long 0; .text; pushl $1b; callf $8,mcount 1529438Ssam #else 1629438Ssam #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0 1729438Ssam #endif PROF 1849358Sbostic #define SYSCALL(x) err: jmp cerror; ENTRY(x); kcall $SYS_/**/x; jcs err 1949358Sbostic #define RSYSCALL(x) SYSCALL(x); ret 2048804Storek #define PSEUDO(x,y) ENTRY(x); kcall $SYS_/**/y; ret 2129438Ssam #define CALL(x,y) calls $x, _/**/y 2229438Ssam 2342472Sbostic #define ASMSTR .asciz 2442472Sbostic 2529438Ssam .globl cerror 26