Commit | Line | Data |
---|---|---|
76797561 DF |
1 | /* |
2 | * Copyright (c) 1983 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | * | |
6 | * @(#)SYS.h 5.1 (Berkeley) %G% | |
7 | */ | |
1c373272 SL |
8 | |
9 | #include <syscall.h> | |
10 | ||
11 | #ifdef PROF | |
12 | #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0; \ | |
13 | .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount | |
14 | #else | |
15 | #define ENTRY(x) .globl _/**/x; .align 2; _/**/x: .word 0 | |
16 | #endif PROF | |
17 | #define SYSCALL(x) err: jmp cerror; ENTRY(x); chmk $SYS_/**/x; jcs err | |
18 | #define PSEUDO(x,y) ENTRY(x); chmk $SYS_/**/y | |
19 | #define CALL(x,y) calls $x, _/**/y | |
20 | ||
21 | .globl cerror |