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_MINSIGSTKSZ 2048
28 #define TARGET_MCL_CURRENT 1
29 #define TARGET_MCL_FUTURE  2
30 #define TARGET_MCL_ONFAULT 4
31 
32 #define TARGET_FORCE_SHMLBA
33 
34 static inline abi_ulong target_shmlba(CPUMIPSState *env)
35 {
36     return 0x40000;
37 }
38 
39 /* MIPS-specific prctl() options */
40 #define TARGET_PR_SET_FP_MODE  45
41 #define TARGET_PR_GET_FP_MODE  46
42 #define TARGET_PR_FP_MODE_FR   (1 << 0)
43 #define TARGET_PR_FP_MODE_FRE  (1 << 1)
44 
45 #endif /* MIPS_TARGET_SYSCALL_H */
46