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