xref: /freebsd/sys/amd64/linux/linux_genassym.c (revision d0b2dbfa)
1 #include <sys/cdefs.h>
2 #include <sys/param.h>
3 #include <sys/systm.h>
4 #include <sys/assym.h>
5 
6 #include <amd64/linux/linux.h>
7 #include <compat/linux/linux_mib.h>
8 
9 #include <x86/linux/linux_x86_sigframe.h>
10 
11 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_uc));
12 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));
13 ASSYM(L_SC_R8, offsetof(struct l_sigcontext, sc_r8));
14 ASSYM(L_SC_R9, offsetof(struct l_sigcontext, sc_r9));
15 ASSYM(L_SC_R10, offsetof(struct l_sigcontext, sc_r10));
16 ASSYM(L_SC_R11, offsetof(struct l_sigcontext, sc_r11));
17 ASSYM(L_SC_R12, offsetof(struct l_sigcontext, sc_r12));
18 ASSYM(L_SC_R13, offsetof(struct l_sigcontext, sc_r13));
19 ASSYM(L_SC_R14, offsetof(struct l_sigcontext, sc_r14));
20 ASSYM(L_SC_R15, offsetof(struct l_sigcontext, sc_r15));
21 ASSYM(L_SC_RDI, offsetof(struct l_sigcontext, sc_rdi));
22 ASSYM(L_SC_RSI, offsetof(struct l_sigcontext, sc_rsi));
23 ASSYM(L_SC_RBP, offsetof(struct l_sigcontext, sc_rbp));
24 ASSYM(L_SC_RBX, offsetof(struct l_sigcontext, sc_rbx));
25 ASSYM(L_SC_RDX, offsetof(struct l_sigcontext, sc_rdx));
26 ASSYM(L_SC_RAX, offsetof(struct l_sigcontext, sc_rax));
27 ASSYM(L_SC_RCX, offsetof(struct l_sigcontext, sc_rcx));
28 ASSYM(L_SC_RSP, offsetof(struct l_sigcontext, sc_rsp));
29 ASSYM(L_SC_RIP, offsetof(struct l_sigcontext, sc_rip));
30 ASSYM(L_SC_RFLAGS, offsetof(struct l_sigcontext, sc_rflags));
31 ASSYM(L_SC_CS, offsetof(struct l_sigcontext, sc_cs));
32 ASSYM(LINUX_VERSION_CODE, LINUX_VERSION_CODE);
33