projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc62830
)
x86/head/64: Add missing __head annotation to startup_64_load_idt()
author
Hou Wenlong
<houwenlong.hwl@antgroup.com>
Wed, 12 Jul 2023 03:30:06 +0000
(11:30 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Mon, 16 Oct 2023 11:38:24 +0000
(13:38 +0200)
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
arch/x86/kernel/head64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/head64.c
b/arch/x86/kernel/head64.c
index f41625de94422ed91d1553522270ecbdb3017332..f0efc22fe759137269786073b197b413c1eb7966 100644
(file)
--- a/
arch/x86/kernel/head64.c
+++ b/
arch/x86/kernel/head64.c
@@
-588,7
+588,7
@@
static void set_bringup_idt_handler(gate_desc *idt, int n, void *handler)
}
/* This runs while still in the direct mapping */
-static void startup_64_load_idt(unsigned long physbase)
+static void
__head
startup_64_load_idt(unsigned long physbase)
{
struct desc_ptr *desc = fixup_pointer(&bringup_idt_descr, physbase);
gate_desc *idt = fixup_pointer(bringup_idt_table, physbase);