xref: /qemu/linux-user/sparc/target_syscall.h (revision 460c579f3ddc71bcf34128d4b3d1e1debdd93f73)
1*460c579fSLluís Vilanova #ifndef TARGET_SYSCALL_H
2*460c579fSLluís Vilanova #define TARGET_SYSCALL_H
3*460c579fSLluís Vilanova 
47a3f1944Sbellard struct target_pt_regs {
5992f48a0Sblueswir1 	abi_ulong psr;
6992f48a0Sblueswir1 	abi_ulong pc;
7992f48a0Sblueswir1 	abi_ulong npc;
8992f48a0Sblueswir1 	abi_ulong y;
9992f48a0Sblueswir1 	abi_ulong u_regs[16];
107a3f1944Sbellard };
11cf720db3Sbellard 
12cf720db3Sbellard #define UNAME_MACHINE "sun4"
13cbc14e6fSRiku Voipio #define UNAME_MINIMUM_RELEASE "2.6.32"
144ce6243dSPeter Maydell 
154ce6243dSPeter Maydell /* SPARC kernels don't define this in their Kconfig, but they have the
164ce6243dSPeter Maydell  * same ABI as if they did, implemented by sparc-specific code which fishes
174ce6243dSPeter Maydell  * directly in the u_regs() struct for half the parameters in sparc_do_fork()
184ce6243dSPeter Maydell  * and copy_thread().
194ce6243dSPeter Maydell  */
204ce6243dSPeter Maydell #define TARGET_CLONE_BACKWARDS
210903c8beSTom Musta #define TARGET_MINSIGSTKSZ      4096
226f6a4032STom Musta #define TARGET_MLOCKALL_MCL_CURRENT 0x2000
236f6a4032STom Musta #define TARGET_MLOCKALL_MCL_FUTURE  0x4000
24*460c579fSLluís Vilanova 
25*460c579fSLluís Vilanova #endif  /* TARGET_SYSCALL_H */
26