2016-06-29 11:47:26 +03:00
|
|
|
#ifndef AARCH64_TARGET_SYSCALL_H
|
|
|
|
#define AARCH64_TARGET_SYSCALL_H
|
2016-02-01 21:38:42 +03:00
|
|
|
|
2013-09-03 23:12:21 +04:00
|
|
|
struct target_pt_regs {
|
|
|
|
uint64_t regs[31];
|
|
|
|
uint64_t sp;
|
|
|
|
uint64_t pc;
|
|
|
|
uint64_t pstate;
|
|
|
|
};
|
|
|
|
|
2018-01-11 16:25:31 +03:00
|
|
|
#if defined(TARGET_WORDS_BIGENDIAN)
|
|
|
|
#define UNAME_MACHINE "aarch64_be"
|
|
|
|
#else
|
2013-09-03 23:12:21 +04:00
|
|
|
#define UNAME_MACHINE "aarch64"
|
2018-01-11 16:25:31 +03:00
|
|
|
#endif
|
2013-09-03 23:12:21 +04:00
|
|
|
#define UNAME_MINIMUM_RELEASE "3.8.0"
|
2014-01-05 02:15:47 +04:00
|
|
|
#define TARGET_CLONE_BACKWARDS
|
2014-08-12 22:53:40 +04:00
|
|
|
#define TARGET_MINSIGSTKSZ 2048
|
2020-08-11 19:45:51 +03:00
|
|
|
#define TARGET_MCL_CURRENT 1
|
|
|
|
#define TARGET_MCL_FUTURE 2
|
|
|
|
#define TARGET_MCL_ONFAULT 4
|
2016-02-01 21:38:42 +03:00
|
|
|
|
2018-03-09 20:09:43 +03:00
|
|
|
#define TARGET_PR_SVE_SET_VL 50
|
|
|
|
#define TARGET_PR_SVE_GET_VL 51
|
|
|
|
|
2019-02-05 19:52:39 +03:00
|
|
|
#define TARGET_PR_PAC_RESET_KEYS 54
|
|
|
|
# define TARGET_PR_PAC_APIAKEY (1 << 0)
|
|
|
|
# define TARGET_PR_PAC_APIBKEY (1 << 1)
|
|
|
|
# define TARGET_PR_PAC_APDAKEY (1 << 2)
|
|
|
|
# define TARGET_PR_PAC_APDBKEY (1 << 3)
|
|
|
|
# define TARGET_PR_PAC_APGAKEY (1 << 4)
|
|
|
|
|
2021-02-12 21:48:51 +03:00
|
|
|
#define TARGET_PR_SET_TAGGED_ADDR_CTRL 55
|
|
|
|
#define TARGET_PR_GET_TAGGED_ADDR_CTRL 56
|
|
|
|
# define TARGET_PR_TAGGED_ADDR_ENABLE (1UL << 0)
|
2021-02-12 21:48:54 +03:00
|
|
|
/* MTE tag check fault modes */
|
|
|
|
# define TARGET_PR_MTE_TCF_SHIFT 1
|
|
|
|
# define TARGET_PR_MTE_TCF_NONE (0UL << TARGET_PR_MTE_TCF_SHIFT)
|
|
|
|
# define TARGET_PR_MTE_TCF_SYNC (1UL << TARGET_PR_MTE_TCF_SHIFT)
|
|
|
|
# define TARGET_PR_MTE_TCF_ASYNC (2UL << TARGET_PR_MTE_TCF_SHIFT)
|
|
|
|
# define TARGET_PR_MTE_TCF_MASK (3UL << TARGET_PR_MTE_TCF_SHIFT)
|
|
|
|
/* MTE tag inclusion mask */
|
|
|
|
# define TARGET_PR_MTE_TAG_SHIFT 3
|
|
|
|
# define TARGET_PR_MTE_TAG_MASK (0xffffUL << TARGET_PR_MTE_TAG_SHIFT)
|
2021-02-12 21:48:51 +03:00
|
|
|
|
2016-06-29 11:47:26 +03:00
|
|
|
#endif /* AARCH64_TARGET_SYSCALL_H */
|