docs/devel/migration.rst: Format literals correctly
[qemu.git] / linux-user / mips / target_syscall.h
blobf59057493a35e278343ae86494d8749750f578fb
1 #ifndef MIPS_TARGET_SYSCALL_H
2 #define MIPS_TARGET_SYSCALL_H
4 /* this struct defines the way the registers are stored on the
5 stack during a system call. */
7 struct target_pt_regs {
8 /* Pad bytes for argument save space on the stack. */
9 abi_ulong pad0[6];
11 /* Saved main processor registers. */
12 abi_ulong regs[32];
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;
23 #define UNAME_MACHINE "mips"
24 #define UNAME_MINIMUM_RELEASE "2.6.32"
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
32 #define TARGET_FORCE_SHMLBA
34 static inline abi_ulong target_shmlba(CPUMIPSState *env)
36 return 0x40000;
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)
45 #endif /* MIPS_TARGET_SYSCALL_H */