diff options
Diffstat (limited to 'src/emu/syscall.h')
-rw-r--r-- | src/emu/syscall.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/emu/syscall.h b/src/emu/syscall.h new file mode 100644 index 0000000..7c7265c --- /dev/null +++ b/src/emu/syscall.h @@ -0,0 +1,16 @@ +#ifndef _SYSCALL_H +#define _SYSCALL_H + +/* calling convention: + * - pass syscall number in GPR[1] + * - pass arguments in GPR[2]-GPR[9] + * - return code is passed in GPR[2] + */ + +#define SYS_exit 0x00 +#define SYS_read 0x01 +#define SYS_write 0x02 + +void do_syscall(void); + +#endif |