asm-offsets.c (caf9a82657b313106aae8f4a35936c116a152299) | asm-offsets.c (6fd166aae78c0ab738d49bda653cbd9e3b1491cf) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 6 */ 7#define COMPILE_OFFSETS 8 9#include <linux/crypto.h> 10#include <linux/sched.h> 11#include <linux/stddef.h> 12#include <linux/hardirq.h> 13#include <linux/suspend.h> 14#include <linux/kbuild.h> 15#include <asm/processor.h> 16#include <asm/thread_info.h> 17#include <asm/sigframe.h> 18#include <asm/bootparam.h> 19#include <asm/suspend.h> | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Generate definitions needed by assembly language modules. 4 * This code generates raw asm output which is post-processed to extract 5 * and format the required data. 6 */ 7#define COMPILE_OFFSETS 8 9#include <linux/crypto.h> 10#include <linux/sched.h> 11#include <linux/stddef.h> 12#include <linux/hardirq.h> 13#include <linux/suspend.h> 14#include <linux/kbuild.h> 15#include <asm/processor.h> 16#include <asm/thread_info.h> 17#include <asm/sigframe.h> 18#include <asm/bootparam.h> 19#include <asm/suspend.h> |
20#include <asm/tlbflush.h> |
|
20 21#ifdef CONFIG_XEN 22#include <xen/interface/xen.h> 23#endif 24 25#ifdef CONFIG_X86_32 26# include "asm-offsets_32.c" 27#else --- 61 unchanged lines hidden (view full) --- 89 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); 90 OFFSET(BP_init_size, boot_params, hdr.init_size); 91 OFFSET(BP_pref_address, boot_params, hdr.pref_address); 92 OFFSET(BP_code32_start, boot_params, hdr.code32_start); 93 94 BLANK(); 95 DEFINE(PTREGS_SIZE, sizeof(struct pt_regs)); 96 | 21 22#ifdef CONFIG_XEN 23#include <xen/interface/xen.h> 24#endif 25 26#ifdef CONFIG_X86_32 27# include "asm-offsets_32.c" 28#else --- 61 unchanged lines hidden (view full) --- 90 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment); 91 OFFSET(BP_init_size, boot_params, hdr.init_size); 92 OFFSET(BP_pref_address, boot_params, hdr.pref_address); 93 OFFSET(BP_code32_start, boot_params, hdr.code32_start); 94 95 BLANK(); 96 DEFINE(PTREGS_SIZE, sizeof(struct pt_regs)); 97 |
98 /* TLB state for the entry code */ 99 OFFSET(TLB_STATE_user_pcid_flush_mask, tlb_state, user_pcid_flush_mask); 100 |
|
97 /* Layout info for cpu_entry_area */ 98 OFFSET(CPU_ENTRY_AREA_tss, cpu_entry_area, tss); 99 OFFSET(CPU_ENTRY_AREA_entry_trampoline, cpu_entry_area, entry_trampoline); 100 OFFSET(CPU_ENTRY_AREA_entry_stack, cpu_entry_area, entry_stack_page); 101 DEFINE(SIZEOF_entry_stack, sizeof(struct entry_stack)); 102} | 101 /* 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 OFFSET(CPU_ENTRY_AREA_entry_stack, cpu_entry_area, entry_stack_page); 105 DEFINE(SIZEOF_entry_stack, sizeof(struct entry_stack)); 106} |