2018-01-31 21:23:18 +00:00
|
|
|
#ifndef __ARCH_AARCH64_DEFS_H
|
|
|
|
#define __ARCH_AARCH64_DEFS_H
|
|
|
|
|
2020-03-30 04:37:20 +00:00
|
|
|
#define REG_SZ (8)
|
|
|
|
#define MCONTEXT_GREGS (184)
|
|
|
|
|
|
|
|
#define R0_OFFSET REG_OFFSET(0)
|
|
|
|
|
2018-01-31 21:23:18 +00:00
|
|
|
#define SP_OFFSET 432
|
|
|
|
#define PC_OFFSET 440
|
|
|
|
#define PSTATE_OFFSET 448
|
|
|
|
|
|
|
|
#ifndef FPSIMD_MAGIC
|
|
|
|
# define FPSIMD_MAGIC 0x46508001
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ESR_MAGIC
|
|
|
|
# define ESR_MAGIC 0x45535201
|
|
|
|
#endif
|
|
|
|
|
2020-12-12 06:43:58 +00:00
|
|
|
#define FETCH_LINKPTR(dest) \
|
2021-01-03 02:17:28 +00:00
|
|
|
asm("mov x0, %0" : "=r" ((dest)))
|
2020-12-12 06:43:58 +00:00
|
|
|
|
2020-03-30 04:37:20 +00:00
|
|
|
#include "common-defs.h"
|
|
|
|
|
2018-01-31 21:23:18 +00:00
|
|
|
#endif
|