1 #ifndef SPARC_TARGET_SYSCALL_H
2 #define SPARC_TARGET_SYSCALL_H
4 #if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)
5 struct target_pt_regs
{
14 struct target_pt_regs
{
24 # define UNAME_MACHINE "sparc64"
26 # define UNAME_MACHINE "sparc"
28 #define UNAME_MINIMUM_RELEASE "2.6.32"
31 * SPARC kernels don't define this in their Kconfig, but they have the
32 * same ABI as if they did, implemented by sparc-specific code which fishes
33 * directly in the u_regs() struct for half the parameters in sparc_do_fork()
36 #define TARGET_CLONE_BACKWARDS
37 #define TARGET_MCL_CURRENT 0x2000
38 #define TARGET_MCL_FUTURE 0x4000
39 #define TARGET_MCL_ONFAULT 0x8000
42 * For SPARC SHMLBA is determined at runtime in the kernel, and
43 * libc has to runtime-detect it using the hwcaps.
44 * See glibc sysdeps/unix/sysv/linux/sparc/getshmlba.
46 #define TARGET_FORCE_SHMLBA
48 static inline abi_ulong
target_shmlba(CPUSPARCState
*env
)
51 return MAX(TARGET_PAGE_SIZE
, 16 * 1024);
53 if (!(env
->def
.features
& CPU_FEATURE_FLUSH
)) {
61 #endif /* SPARC_TARGET_SYSCALL_H */