Skip to content

Commit 7f6874e

Browse files
bysuiIngo Molnar
authored and
Ingo Molnar
committed
x86/head/64: Add missing __head annotation to startup_64_load_idt()
This function is currently only used in the head code and is only called from startup_64_setup_env(). Although it would be inlined by the compiler, it would be better to mark it as __head too in case it doesn't. Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/efcc5b5e18af880e415d884e072bf651c1fa7c34.1689130310.git.houwenlong.hwl@antgroup.com
1 parent dc62830 commit 7f6874e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/head64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static void set_bringup_idt_handler(gate_desc *idt, int n, void *handler)
588588
}
589589

590590
/* This runs while still in the direct mapping */
591-
static void startup_64_load_idt(unsigned long physbase)
591+
static void __head startup_64_load_idt(unsigned long physbase)
592592
{
593593
struct desc_ptr *desc = fixup_pointer(&bringup_idt_descr, physbase);
594594
gate_desc *idt = fixup_pointer(bringup_idt_table, physbase);

0 commit comments

Comments
 (0)