blob: 7c7265cdf5b05960fe2a0cf8fc52d0adebb18581 (
plain) (
tree)
|
|
#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
|