Commit | Line | Data |
---|---|---|
76797561 DF |
1 | /* |
2 | * Copyright (c) 1983 Regents of the University of California. | |
b094f5ae | 3 | * All rights reserved. |
76797561 | 4 | * |
019bea33 | 5 | * %sccs.include.redist.c% |
b094f5ae | 6 | * |
019bea33 | 7 | * @(#)SYS.h 5.6 (Berkeley) %G% |
76797561 | 8 | */ |
1c373272 | 9 | |
b6e2d24a | 10 | #include <sys/syscall.h> |
1c373272 SL |
11 | |
12 | #ifdef PROF | |
13 | #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0; \ | |
14 | .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount | |
15 | #else | |
16 | #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0 | |
17 | #endif PROF | |
18 | #define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err | |
19 | #define PSEUDO(x,y) ENTRY(x); chmk $SYS_/**/y | |
20 | #define CALL(x,y) calls $x, _/**/y | |
21 | ||
8d39917d KB |
22 | #define ASMSTR .asciz |
23 | ||
1c373272 | 24 | .globl cerror |