]>
Commit | Line | Data |
---|---|---|
3622634b MA |
1 | #ifndef OPENRISC_TARGET_SYSCALL_H |
2 | #define OPENRISC_TARGET_SYSCALL_H | |
460c579f | 3 | |
a8720299 JL |
4 | struct target_pt_regs { |
5 | union { | |
6 | struct { | |
7 | /* Named registers */ | |
8 | uint32_t sr; /* Stored in place of r0 */ | |
9 | target_ulong sp; /* r1 */ | |
10 | }; | |
11 | struct { | |
12 | /* Old style */ | |
13 | target_ulong offset[2]; | |
14 | target_ulong gprs[30]; | |
15 | }; | |
16 | struct { | |
17 | /* New style */ | |
18 | target_ulong gpr[32]; | |
19 | }; | |
20 | }; | |
21 | target_ulong pc; | |
22 | target_ulong orig_gpr11; /* For restarting system calls */ | |
23 | uint32_t syscallno; /* Syscall number (used by strace) */ | |
24 | target_ulong dummy; /* Cheap alignment fix */ | |
25 | }; | |
26 | ||
27 | #define UNAME_MACHINE "openrisc" | |
cbc14e6f | 28 | #define UNAME_MINIMUM_RELEASE "2.6.32" |
0903c8be TM |
29 | |
30 | #define TARGET_MINSIGSTKSZ 2048 | |
6f6a4032 TM |
31 | #define TARGET_MLOCKALL_MCL_CURRENT 1 |
32 | #define TARGET_MLOCKALL_MCL_FUTURE 2 | |
460c579f | 33 | |
ab902338 RH |
34 | #define MMAP_SHIFT TARGET_PAGE_BITS |
35 | ||
3622634b | 36 | #endif /* OPENRISC_TARGET_SYSCALL_H */ |