Files
xemu/linux-user/arm/target_syscall.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
994 B
C
Raw Normal View History

#ifndef ARM_TARGET_SYSCALL_H
#define ARM_TARGET_SYSCALL_H
2003-09-30 20:34:21 +00:00
/* this struct defines the way the registers are stored on the
stack during a system call. */
/* uregs[0..15] are r0 to r15; uregs[16] is CPSR; uregs[17] is ORIG_r0 */
2003-09-30 20:34:21 +00:00
struct target_pt_regs {
abi_long uregs[18];
2003-09-30 20:34:21 +00:00
};
#define ARM_SYSCALL_BASE 0x900000
2005-04-27 20:11:21 +00:00
#define ARM_THUMB_SYSCALL 0
#define ARM_NR_BASE 0xf0000
2014-06-20 04:13:14 -07:00
#define ARM_NR_breakpoint (ARM_NR_BASE + 1)
#define ARM_NR_cacheflush (ARM_NR_BASE + 2)
#define ARM_NR_set_tls (ARM_NR_BASE + 5)
2018-04-16 11:18:25 +02:00
#define ARM_NR_get_tls (ARM_NR_BASE + 6)
2004-09-13 21:41:39 +00:00
2022-03-23 19:57:18 +04:00
#if TARGET_BIG_ENDIAN
2005-01-31 20:45:13 +00:00
#define UNAME_MACHINE "armv5teb"
2004-09-13 21:41:39 +00:00
#else
2005-01-31 20:45:13 +00:00
#define UNAME_MACHINE "armv5tel"
2004-09-13 21:41:39 +00:00
#endif
#define UNAME_MINIMUM_RELEASE "2.6.32"
#define TARGET_CLONE_BACKWARDS
#define TARGET_MCL_CURRENT 1
#define TARGET_MCL_FUTURE 2
#define TARGET_MCL_ONFAULT 4
2016-07-08 01:17:27 +02:00
#define TARGET_WANT_OLD_SYS_SELECT
#define TARGET_FORCE_SHMLBA
static inline abi_ulong target_shmlba(CPUARMState *env)
{
return 4 * 4096;
}
#endif /* ARM_TARGET_SYSCALL_H */