]>
Commit | Line | Data |
---|---|---|
3622634b MA |
1 | #ifndef SPARC64_TARGET_SYSCALL_H |
2 | #define SPARC64_TARGET_SYSCALL_H | |
460c579f | 3 | |
a315a145 | 4 | struct target_pt_regs { |
992f48a0 BS |
5 | abi_ulong u_regs[16]; |
6 | abi_ulong tstate; | |
7 | abi_ulong pc; | |
8 | abi_ulong npc; | |
9 | abi_ulong y; | |
10 | abi_ulong fprs; | |
a315a145 FB |
11 | }; |
12 | ||
13 | #define UNAME_MACHINE "sun4u" | |
cbc14e6f | 14 | #define UNAME_MINIMUM_RELEASE "2.6.32" |
4ce6243d PM |
15 | |
16 | /* SPARC kernels don't define this in their Kconfig, but they have the | |
17 | * same ABI as if they did, implemented by sparc-specific code which fishes | |
18 | * directly in the u_regs() struct for half the parameters in sparc_do_fork() | |
19 | * and copy_thread(). | |
20 | */ | |
21 | #define TARGET_CLONE_BACKWARDS | |
0903c8be | 22 | #define TARGET_MINSIGSTKSZ 4096 |
6f6a4032 TM |
23 | #define TARGET_MLOCKALL_MCL_CURRENT 0x2000 |
24 | #define TARGET_MLOCKALL_MCL_FUTURE 0x4000 | |
460c579f | 25 | |
a7c65cbf PM |
26 | #define TARGET_FORCE_SHMLBA |
27 | ||
28 | static inline abi_ulong target_shmlba(CPUSPARCState *env) | |
29 | { | |
30 | return MAX(TARGET_PAGE_SIZE, 16 * 1024); | |
31 | } | |
32 | ||
3622634b | 33 | #endif /* SPARC64_TARGET_SYSCALL_H */ |