From 49f510d2d60129526832bfcd9c0f4049962bc80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20B=C3=B6hm?= Date: Mon, 18 May 2009 20:53:42 +0200 Subject: move stuff around and create initial source structure --- src/emu/syscall.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/emu/syscall.h (limited to 'src/emu/syscall.h') 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 -- cgit v1.2.3