asm-offsets.c (de4fb176622d54a82ea3ceb7362392aaf5ff0b5a) asm-offsets.c (527a534c732604931959e73e9c3a8952d8c1a994)
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

--- 4 unchanged lines hidden (view full) ---

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>
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

--- 4 unchanged lines hidden (view full) ---

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>
21#include <asm/tdx.h>
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

--- 32 unchanged lines hidden (view full) ---

61#ifdef CONFIG_XEN
62 BLANK();
63 OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask);
64 OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending);
65 OFFSET(XEN_vcpu_info_arch_cr2, vcpu_info, arch.cr2);
66#endif
67
68 BLANK();
22
23#ifdef CONFIG_XEN
24#include <xen/interface/xen.h>
25#endif
26
27#ifdef CONFIG_X86_32
28# include "asm-offsets_32.c"
29#else

--- 32 unchanged lines hidden (view full) ---

62#ifdef CONFIG_XEN
63 BLANK();
64 OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask);
65 OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending);
66 OFFSET(XEN_vcpu_info_arch_cr2, vcpu_info, arch.cr2);
67#endif
68
69 BLANK();
70 OFFSET(TDX_MODULE_rcx, tdx_module_output, rcx);
71 OFFSET(TDX_MODULE_rdx, tdx_module_output, rdx);
72 OFFSET(TDX_MODULE_r8, tdx_module_output, r8);
73 OFFSET(TDX_MODULE_r9, tdx_module_output, r9);
74 OFFSET(TDX_MODULE_r10, tdx_module_output, r10);
75 OFFSET(TDX_MODULE_r11, tdx_module_output, r11);
76
77 BLANK();
69 OFFSET(BP_scratch, boot_params, scratch);
70 OFFSET(BP_secure_boot, boot_params, secure_boot);
71 OFFSET(BP_loadflags, boot_params, hdr.loadflags);
72 OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch);
73 OFFSET(BP_version, boot_params, hdr.version);
74 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment);
75 OFFSET(BP_init_size, boot_params, hdr.init_size);
76 OFFSET(BP_pref_address, boot_params, hdr.pref_address);

--- 17 unchanged lines hidden ---
78 OFFSET(BP_scratch, boot_params, scratch);
79 OFFSET(BP_secure_boot, boot_params, secure_boot);
80 OFFSET(BP_loadflags, boot_params, hdr.loadflags);
81 OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch);
82 OFFSET(BP_version, boot_params, hdr.version);
83 OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment);
84 OFFSET(BP_init_size, boot_params, hdr.init_size);
85 OFFSET(BP_pref_address, boot_params, hdr.pref_address);

--- 17 unchanged lines hidden ---