We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f6874e commit d2a285dCopy full SHA for d2a285d
arch/x86/include/asm/init.h
@@ -2,6 +2,8 @@
2
#ifndef _ASM_X86_INIT_H
3
#define _ASM_X86_INIT_H
4
5
+#define __head __section(".head.text")
6
+
7
struct x86_mapping_info {
8
void *(*alloc_pgt_page)(void *); /* allocate buf for page table */
9
void *context; /* context for alloc_pgt_page */
arch/x86/kernel/head64.c
@@ -41,6 +41,7 @@
41
#include <asm/trapnr.h>
42
#include <asm/sev.h>
43
#include <asm/tdx.h>
44
+#include <asm/init.h>
45
46
/*
47
* Manage page tables very early on.
@@ -84,8 +85,6 @@ static struct desc_ptr startup_gdt_descr __initdata = {
84
85
.address = 0,
86
};
87
-#define __head __section(".head.text")
88
-
89
static void __head *fixup_pointer(void *ptr, unsigned long physaddr)
90
{
91
return ptr - (void *)_text + (void *)physaddr;
0 commit comments