summaryrefslogtreecommitdiffstats
path: root/src/emu/syscall.h
blob: 7c7265cdf5b05960fe2a0cf8fc52d0adebb18581 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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