blob: 7f64b4970e98ae292f76b28f093633742780b388 [file] [log] [blame]
Dmitry V. Levin5503dd22015-02-13 02:12:14 +00001/* SH64 Linux - this code assumes the following kernel API for system calls:
2 PC Offset 0
3 System Call Offset 16 (actually, (syscall no.) | (0x1n << 16),
4 where n = no. of parameters.
5 Other regs Offset 24+
6
7 On entry: R2-7 = parameters 1-6 (as many as necessary)
8 On return: R9 = result.
9*/
10
11/* Offset for peeks of registers */
12#define REG_OFFSET (24)
13#define REG_GENERAL(x) (8*(x)+REG_OFFSET)
14#define REG_PC (0*8)
15#define REG_SYSCALL (2*8)