root / syscall-arm.h @ b67d5959
History | View | Annotate | Download (653 Bytes)
1 | 5898e816 | bellard | |
---|---|---|---|
2 | 5898e816 | bellard | /* this struct defines the way the registers are stored on the
|
3 | 5898e816 | bellard | stack during a system call. */
|
4 | 5898e816 | bellard | |
5 | 5898e816 | bellard | struct target_pt_regs {
|
6 | 5898e816 | bellard | target_long uregs[18];
|
7 | 5898e816 | bellard | }; |
8 | 5898e816 | bellard | |
9 | 5898e816 | bellard | #define ARM_cpsr uregs[16] |
10 | 5898e816 | bellard | #define ARM_pc uregs[15] |
11 | 5898e816 | bellard | #define ARM_lr uregs[14] |
12 | 5898e816 | bellard | #define ARM_sp uregs[13] |
13 | 5898e816 | bellard | #define ARM_ip uregs[12] |
14 | 5898e816 | bellard | #define ARM_fp uregs[11] |
15 | 5898e816 | bellard | #define ARM_r10 uregs[10] |
16 | 5898e816 | bellard | #define ARM_r9 uregs[9] |
17 | 5898e816 | bellard | #define ARM_r8 uregs[8] |
18 | 5898e816 | bellard | #define ARM_r7 uregs[7] |
19 | 5898e816 | bellard | #define ARM_r6 uregs[6] |
20 | 5898e816 | bellard | #define ARM_r5 uregs[5] |
21 | 5898e816 | bellard | #define ARM_r4 uregs[4] |
22 | 5898e816 | bellard | #define ARM_r3 uregs[3] |
23 | 5898e816 | bellard | #define ARM_r2 uregs[2] |
24 | 5898e816 | bellard | #define ARM_r1 uregs[1] |
25 | 5898e816 | bellard | #define ARM_r0 uregs[0] |
26 | 5898e816 | bellard | #define ARM_ORIG_r0 uregs[17] |
27 | 5898e816 | bellard | |
28 | 43fff238 | bellard | #define ARM_SYSCALL_BASE 0x900000 |