• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Linux-specific definitions: */
2 
3 /* Define various structure offsets to simplify cross-compilation.  */
4 
5 /* Offsets for AArch64 Linux "ucontext_t":  */
6 
7 #define LINUX_UC_FLAGS_OFF	0x0
8 #define LINUX_UC_LINK_OFF	0x8
9 #define LINUX_UC_STACK_OFF	0x10
10 #define LINUX_UC_SIGMASK_OFF	0x28
11 #define LINUX_UC_MCONTEXT_OFF	0xb0
12 
13 /* Offsets for AArch64 Linux "struct sigcontext":  */
14 
15 #define LINUX_SC_FAULTADDRESS_OFF	0x00
16 #define LINUX_SC_X0_OFF		0x008
17 #define LINUX_SC_X1_OFF		0x010
18 #define LINUX_SC_X2_OFF		0x018
19 #define LINUX_SC_X3_OFF		0x020
20 #define LINUX_SC_X4_OFF		0x028
21 #define LINUX_SC_X5_OFF		0x030
22 #define LINUX_SC_X6_OFF		0x038
23 #define LINUX_SC_X7_OFF		0x040
24 #define LINUX_SC_X8_OFF		0x048
25 #define LINUX_SC_X9_OFF		0x050
26 #define LINUX_SC_X10_OFF	0x058
27 #define LINUX_SC_X11_OFF	0x060
28 #define LINUX_SC_X12_OFF	0x068
29 #define LINUX_SC_X13_OFF	0x070
30 #define LINUX_SC_X14_OFF	0x078
31 #define LINUX_SC_X15_OFF	0x080
32 #define LINUX_SC_X16_OFF	0x088
33 #define LINUX_SC_X17_OFF	0x090
34 #define LINUX_SC_X18_OFF	0x098
35 #define LINUX_SC_X19_OFF	0x0a0
36 #define LINUX_SC_X20_OFF	0x0a8
37 #define LINUX_SC_X21_OFF	0x0b0
38 #define LINUX_SC_X22_OFF	0x0b8
39 #define LINUX_SC_X23_OFF	0x0c0
40 #define LINUX_SC_X24_OFF	0x0c8
41 #define LINUX_SC_X25_OFF	0x0d0
42 #define LINUX_SC_X26_OFF	0x0d8
43 #define LINUX_SC_X27_OFF	0x0e0
44 #define LINUX_SC_X28_OFF	0x0e8
45 #define LINUX_SC_X29_OFF	0x0f0
46 #define LINUX_SC_X30_OFF	0x0f8
47 #define LINUX_SC_SP_OFF		0x100
48 #define LINUX_SC_PC_OFF		0x108
49 #define LINUX_SC_PSTATE_OFF	0x110
50