2
#include <sys/regdef.h>
5
Kernel syscall interface:
10
This macro is similar to SYSCALL in sys/syscall.h, but not completely.
11
There's room for optimization, if we assume this will continue to
12
be assembled as one file.
14
Compile with -DPIC for pic code.
18
#define PICOPT .option pic2
26
.globl machdep_sys_##x; \
27
.ent machdep_sys_##x, 0; \
39
/* ==========================================================================
40
* error code for all syscalls. The error value is returned as the negative
48
/* ==========================================================================
52
.globl machdep_sys_lstat;
53
.ent machdep_sys_lstat, 0;
66
.end machdep_sys_lstat
68
/* ==========================================================================
72
.globl machdep_sys_fstat;
73
.ent machdep_sys_fstat, 0;
86
.end machdep_sys_fstat
88
/* ==========================================================================
92
.globl machdep_sys_stat;
93
.ent machdep_sys_stat, 0;
106
.end machdep_sys_stat