diff options
| author | Hou Wenlong <houwenlong.hwl@antgroup.com> | 2023-10-17 15:08:06 +0800 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2023-10-17 14:51:14 +0200 |
| commit | d2a285d65bfde3218fd0c3b88794d0135ced680b (patch) | |
| tree | 51438dd4cee76894808e6d2a8be83d98bb0c8485 /arch/x86/include/asm/init.h | |
| parent | 7f6874eddd81cb2ed784642a7a4321671e158ffe (diff) | |
x86/head/64: Move the __head definition to <asm/init.h>
Move the __head section definition to a header to widen its use.
An upcoming patch will mark the code as __head in mem_encrypt_identity.c too.
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/0583f57977be184689c373fe540cbd7d85ca2047.1697525407.git.houwenlong.hwl@antgroup.com
Diffstat (limited to 'arch/x86/include/asm/init.h')
| -rw-r--r-- | arch/x86/include/asm/init.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/init.h b/arch/x86/include/asm/init.h index 5f1d3c421f68..cc9ccf61b6bd 100644 --- a/arch/x86/include/asm/init.h +++ b/arch/x86/include/asm/init.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_INIT_H #define _ASM_X86_INIT_H +#define __head __section(".head.text") + struct x86_mapping_info { void *(*alloc_pgt_page)(void *); /* allocate buf for page table */ void *context; /* context for alloc_pgt_page */ |