1 #ifndef MIPS_TARGET_SYSCALL_H
2 #define MIPS_TARGET_SYSCALL_H
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 {
8 	/* Pad bytes for argument save space on the stack. */
9 	abi_ulong pad0[6];
10 
11 	/* Saved main processor registers. */
12 	abi_ulong regs[32];
13 
14 	/* Saved special registers. */
15 	abi_ulong cp0_status;
16 	abi_ulong lo;
17 	abi_ulong hi;
18 	abi_ulong cp0_badvaddr;
19 	abi_ulong cp0_cause;
20 	abi_ulong cp0_epc;
21 };
22 
23 #define UNAME_MACHINE "mips"
24 #define UNAME_MINIMUM_RELEASE "2.6.32"
25 
26 #define TARGET_CLONE_BACKWARDS
27 #define TARGET_MCL_CURRENT 1
28 #define TARGET_MCL_FUTURE  2
29 #define TARGET_MCL_ONFAULT 4
30 
31 #define TARGET_FORCE_SHMLBA
32 
33 static inline abi_ulong target_shmlba(CPUMIPSState *env)
34 {
35     return 0x40000;
36 }
37 
38 #endif /* MIPS_TARGET_SYSCALL_H */
39