]>
Commit | Line | Data |
---|---|---|
3622634b MA |
1 | #ifndef MIPS64_TARGET_SYSCALL_H |
2 | #define MIPS64_TARGET_SYSCALL_H | |
540635ba TS |
3 | |
4 | /* this struct defines the way the registers are stored on the | |
5 | stack during a system call. */ | |
6 | ||
7 | struct target_pt_regs { | |
597e2cec RH |
8 | /* Saved main processor registers. */ |
9 | target_ulong regs[32]; | |
540635ba | 10 | |
597e2cec RH |
11 | /* Saved special registers. */ |
12 | target_ulong cp0_status; | |
13 | target_ulong lo; | |
14 | target_ulong hi; | |
15 | target_ulong cp0_badvaddr; | |
16 | target_ulong cp0_cause; | |
17 | target_ulong cp0_epc; | |
540635ba TS |
18 | }; |
19 | ||
540635ba | 20 | #define UNAME_MACHINE "mips64" |
cbc14e6f | 21 | #define UNAME_MINIMUM_RELEASE "2.6.32" |
4ce6243d PM |
22 | |
23 | #define TARGET_CLONE_BACKWARDS | |
02e5d7d7 FB |
24 | #define TARGET_MCL_CURRENT 1 |
25 | #define TARGET_MCL_FUTURE 2 | |
26 | #define TARGET_MCL_ONFAULT 4 | |
460c579f | 27 | |
ee8e7614 PM |
28 | #define TARGET_FORCE_SHMLBA |
29 | ||
30 | static inline abi_ulong target_shmlba(CPUMIPSState *env) | |
31 | { | |
32 | return 0x40000; | |
33 | } | |
34 | ||
3622634b | 35 | #endif /* MIPS64_TARGET_SYSCALL_H */ |