.. | .. |
---|
29 | 29 | # include "asm-offsets_64.c" |
---|
30 | 30 | #endif |
---|
31 | 31 | |
---|
32 | | -void common(void) { |
---|
| 32 | +static void __used common(void) |
---|
| 33 | +{ |
---|
33 | 34 | BLANK(); |
---|
34 | 35 | OFFSET(TASK_threadsp, task_struct, thread.sp); |
---|
35 | 36 | #ifdef CONFIG_STACKPROTECTOR |
---|
36 | 37 | OFFSET(TASK_stack_canary, task_struct, stack_canary); |
---|
37 | 38 | #endif |
---|
38 | | - |
---|
39 | | - BLANK(); |
---|
40 | | - OFFSET(TASK_TI_flags, task_struct, thread_info.flags); |
---|
41 | | - OFFSET(TASK_addr_limit, task_struct, thread.addr_limit); |
---|
42 | 39 | |
---|
43 | 40 | BLANK(); |
---|
44 | 41 | OFFSET(crypto_tfm_ctx_offset, crypto_tfm, __crt_ctx); |
---|
.. | .. |
---|
64 | 61 | OFFSET(IA32_RT_SIGFRAME_sigcontext, rt_sigframe_ia32, uc.uc_mcontext); |
---|
65 | 62 | #endif |
---|
66 | 63 | |
---|
67 | | -#ifdef CONFIG_PARAVIRT |
---|
| 64 | +#ifdef CONFIG_PARAVIRT_XXL |
---|
68 | 65 | BLANK(); |
---|
69 | | - OFFSET(PARAVIRT_PATCH_pv_cpu_ops, paravirt_patch_template, pv_cpu_ops); |
---|
70 | | - OFFSET(PARAVIRT_PATCH_pv_irq_ops, paravirt_patch_template, pv_irq_ops); |
---|
71 | | - OFFSET(PV_IRQ_irq_disable, pv_irq_ops, irq_disable); |
---|
72 | | - OFFSET(PV_IRQ_irq_enable, pv_irq_ops, irq_enable); |
---|
73 | | - OFFSET(PV_CPU_iret, pv_cpu_ops, iret); |
---|
74 | | - OFFSET(PV_CPU_read_cr0, pv_cpu_ops, read_cr0); |
---|
75 | | - OFFSET(PV_MMU_read_cr2, pv_mmu_ops, read_cr2); |
---|
| 66 | + OFFSET(PV_IRQ_irq_disable, paravirt_patch_template, irq.irq_disable); |
---|
| 67 | + OFFSET(PV_IRQ_irq_enable, paravirt_patch_template, irq.irq_enable); |
---|
| 68 | + OFFSET(PV_CPU_iret, paravirt_patch_template, cpu.iret); |
---|
| 69 | + OFFSET(PV_MMU_read_cr2, paravirt_patch_template, mmu.read_cr2); |
---|
76 | 70 | #endif |
---|
77 | 71 | |
---|
78 | 72 | #ifdef CONFIG_XEN |
---|
79 | 73 | BLANK(); |
---|
80 | 74 | OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask); |
---|
81 | 75 | OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending); |
---|
| 76 | + OFFSET(XEN_vcpu_info_arch_cr2, vcpu_info, arch.cr2); |
---|
82 | 77 | #endif |
---|
83 | 78 | |
---|
84 | 79 | BLANK(); |
---|
.. | .. |
---|
90 | 85 | OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); |
---|
91 | 86 | OFFSET(BP_init_size, boot_params, hdr.init_size); |
---|
92 | 87 | OFFSET(BP_pref_address, boot_params, hdr.pref_address); |
---|
93 | | - OFFSET(BP_code32_start, boot_params, hdr.code32_start); |
---|
94 | 88 | |
---|
95 | 89 | BLANK(); |
---|
96 | 90 | DEFINE(PTREGS_SIZE, sizeof(struct pt_regs)); |
---|
.. | .. |
---|
99 | 93 | OFFSET(TLB_STATE_user_pcid_flush_mask, tlb_state, user_pcid_flush_mask); |
---|
100 | 94 | |
---|
101 | 95 | /* Layout info for cpu_entry_area */ |
---|
102 | | - OFFSET(CPU_ENTRY_AREA_tss, cpu_entry_area, tss); |
---|
103 | | - OFFSET(CPU_ENTRY_AREA_entry_trampoline, cpu_entry_area, entry_trampoline); |
---|
104 | 96 | OFFSET(CPU_ENTRY_AREA_entry_stack, cpu_entry_area, entry_stack_page); |
---|
105 | 97 | DEFINE(SIZEOF_entry_stack, sizeof(struct entry_stack)); |
---|
106 | 98 | DEFINE(MASK_entry_stack, (~(sizeof(struct entry_stack) - 1))); |
---|
107 | 99 | |
---|
108 | | - /* Offset for sp0 and sp1 into the tss_struct */ |
---|
| 100 | + /* Offset for fields in tss_struct */ |
---|
109 | 101 | OFFSET(TSS_sp0, tss_struct, x86_tss.sp0); |
---|
110 | 102 | OFFSET(TSS_sp1, tss_struct, x86_tss.sp1); |
---|
| 103 | + OFFSET(TSS_sp2, tss_struct, x86_tss.sp2); |
---|
111 | 104 | } |
---|