1 | #ifndef __ASM_OFFSETS_H__ |
2 | #define __ASM_OFFSETS_H__ |
3 | /* |
4 | * DO NOT MODIFY. |
5 | * |
6 | * This file was generated by Kbuild |
7 | */ |
8 | |
9 | #define PV_CPU_usergs_sysret64 256 /* offsetof(struct paravirt_patch_template, cpu.usergs_sysret64) */ |
10 | #define PV_CPU_swapgs 272 /* offsetof(struct paravirt_patch_template, cpu.swapgs) */ |
11 | #define PV_IRQ_save_fl 296 /* offsetof(struct paravirt_patch_template, irq.save_fl) */ |
12 | |
13 | #define KVM_STEAL_TIME_preempted 16 /* offsetof(struct kvm_steal_time, preempted) */ |
14 | |
15 | #define pt_regs_bx 40 /* offsetof(struct pt_regs, bx) */ |
16 | #define pt_regs_cx 88 /* offsetof(struct pt_regs, cx) */ |
17 | #define pt_regs_dx 96 /* offsetof(struct pt_regs, dx) */ |
18 | #define pt_regs_sp 152 /* offsetof(struct pt_regs, sp) */ |
19 | #define pt_regs_bp 32 /* offsetof(struct pt_regs, bp) */ |
20 | #define pt_regs_si 104 /* offsetof(struct pt_regs, si) */ |
21 | #define pt_regs_di 112 /* offsetof(struct pt_regs, di) */ |
22 | #define pt_regs_r8 72 /* offsetof(struct pt_regs, r8) */ |
23 | #define pt_regs_r9 64 /* offsetof(struct pt_regs, r9) */ |
24 | #define pt_regs_r10 56 /* offsetof(struct pt_regs, r10) */ |
25 | #define pt_regs_r11 48 /* offsetof(struct pt_regs, r11) */ |
26 | #define pt_regs_r12 24 /* offsetof(struct pt_regs, r12) */ |
27 | #define pt_regs_r13 16 /* offsetof(struct pt_regs, r13) */ |
28 | #define pt_regs_r14 8 /* offsetof(struct pt_regs, r14) */ |
29 | #define pt_regs_r15 0 /* offsetof(struct pt_regs, r15) */ |
30 | #define pt_regs_flags 144 /* offsetof(struct pt_regs, flags) */ |
31 | |
32 | #define saved_context_cr0 200 /* offsetof(struct saved_context, cr0) */ |
33 | #define saved_context_cr2 208 /* offsetof(struct saved_context, cr2) */ |
34 | #define saved_context_cr3 216 /* offsetof(struct saved_context, cr3) */ |
35 | #define saved_context_cr4 224 /* offsetof(struct saved_context, cr4) */ |
36 | #define saved_context_cr8 232 /* offsetof(struct saved_context, cr8) */ |
37 | #define saved_context_gdt_desc 275 /* offsetof(struct saved_context, gdt_desc) */ |
38 | |
39 | #define TSS_ist 36 /* offsetof(struct tss_struct, x86_tss.ist) */ |
40 | |
41 | #define stack_canary_offset 40 /* offsetof(union irq_stack_union, stack_canary) */ |
42 | |
43 | #define __NR_syscall_max 547 /* sizeof(syscalls_64) - 1 */ |
44 | #define NR_syscalls 548 /* sizeof(syscalls_64) */ |
45 | #define __NR_syscall_compat_max 427 /* sizeof(syscalls_ia32) - 1 */ |
46 | #define IA32_NR_syscalls 428 /* sizeof(syscalls_ia32) */ |
47 | |
48 | #define TASK_threadsp 12120 /* offsetof(struct task_struct, thread.sp) */ |
49 | #define TASK_stack_canary 1352 /* offsetof(struct task_struct, stack_canary) */ |
50 | |
51 | #define TASK_TI_flags 0 /* offsetof(struct task_struct, thread_info.flags) */ |
52 | #define TASK_addr_limit 12248 /* offsetof(struct task_struct, thread.addr_limit) */ |
53 | |
54 | #define crypto_tfm_ctx_offset 64 /* offsetof(struct crypto_tfm, __crt_ctx) */ |
55 | |
56 | #define pbe_address 0 /* offsetof(struct pbe, address) */ |
57 | #define pbe_orig_address 8 /* offsetof(struct pbe, orig_address) */ |
58 | #define pbe_next 16 /* offsetof(struct pbe, next) */ |
59 | |
60 | #define IA32_SIGCONTEXT_ax 44 /* offsetof(struct sigcontext_32, ax) */ |
61 | #define IA32_SIGCONTEXT_bx 32 /* offsetof(struct sigcontext_32, bx) */ |
62 | #define IA32_SIGCONTEXT_cx 40 /* offsetof(struct sigcontext_32, cx) */ |
63 | #define IA32_SIGCONTEXT_dx 36 /* offsetof(struct sigcontext_32, dx) */ |
64 | #define IA32_SIGCONTEXT_si 20 /* offsetof(struct sigcontext_32, si) */ |
65 | #define IA32_SIGCONTEXT_di 16 /* offsetof(struct sigcontext_32, di) */ |
66 | #define IA32_SIGCONTEXT_bp 24 /* offsetof(struct sigcontext_32, bp) */ |
67 | #define IA32_SIGCONTEXT_sp 28 /* offsetof(struct sigcontext_32, sp) */ |
68 | #define IA32_SIGCONTEXT_ip 56 /* offsetof(struct sigcontext_32, ip) */ |
69 | |
70 | #define IA32_RT_SIGFRAME_sigcontext 164 /* offsetof(struct rt_sigframe_ia32, uc.uc_mcontext) */ |
71 | |
72 | #define PV_IRQ_irq_disable 312 /* offsetof(struct paravirt_patch_template, irq.irq_disable) */ |
73 | #define PV_IRQ_irq_enable 320 /* offsetof(struct paravirt_patch_template, irq.irq_enable) */ |
74 | #define PV_CPU_iret 264 /* offsetof(struct paravirt_patch_template, cpu.iret) */ |
75 | #define PV_MMU_read_cr2 392 /* offsetof(struct paravirt_patch_template, mmu.read_cr2) */ |
76 | |
77 | #define XEN_vcpu_info_mask 1 /* offsetof(struct vcpu_info, evtchn_upcall_mask) */ |
78 | #define XEN_vcpu_info_pending 0 /* offsetof(struct vcpu_info, evtchn_upcall_pending) */ |
79 | |
80 | #define BP_scratch 484 /* offsetof(struct boot_params, scratch) */ |
81 | #define BP_secure_boot 492 /* offsetof(struct boot_params, secure_boot) */ |
82 | #define BP_loadflags 529 /* offsetof(struct boot_params, hdr.loadflags) */ |
83 | #define BP_hardware_subarch 572 /* offsetof(struct boot_params, hdr.hardware_subarch) */ |
84 | #define BP_version 518 /* offsetof(struct boot_params, hdr.version) */ |
85 | #define BP_kernel_alignment 560 /* offsetof(struct boot_params, hdr.kernel_alignment) */ |
86 | #define BP_init_size 608 /* offsetof(struct boot_params, hdr.init_size) */ |
87 | #define BP_pref_address 600 /* offsetof(struct boot_params, hdr.pref_address) */ |
88 | #define BP_code32_start 532 /* offsetof(struct boot_params, hdr.code32_start) */ |
89 | |
90 | #define PTREGS_SIZE 168 /* sizeof(struct pt_regs) */ |
91 | #define TLB_STATE_user_pcid_flush_mask 22 /* offsetof(struct tlb_state, user_pcid_flush_mask) */ |
92 | #define CPU_ENTRY_AREA_entry_stack 4096 /* offsetof(struct cpu_entry_area, entry_stack_page) */ |
93 | #define SIZEOF_entry_stack 512 /* sizeof(struct entry_stack) */ |
94 | #define MASK_entry_stack -512 /* (~(sizeof(struct entry_stack) - 1)) */ |
95 | #define TSS_sp0 4 /* offsetof(struct tss_struct, x86_tss.sp0) */ |
96 | #define TSS_sp1 12 /* offsetof(struct tss_struct, x86_tss.sp1) */ |
97 | #define TSS_sp2 20 /* offsetof(struct tss_struct, x86_tss.sp2) */ |
98 | |
99 | #endif |
100 | |