aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/machine_kexec_32.c
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2021-05-19 14:21:50 -0700
committerThomas Gleixner <tglx@linutronix.de>2021-05-21 12:36:45 +0200
commit8ec9069a432c873e52e6f4ce1496f282a4299604 (patch)
treeab99b48163ee8596d3eb563c3f067e9dfb944117 /arch/x86/kernel/machine_kexec_32.c
parentx86/irq: Add and use NR_EXTERNAL_VECTORS and NR_SYSTEM_VECTORS (diff)
downloadlinux-dev-8ec9069a432c873e52e6f4ce1496f282a4299604.tar.xz
linux-dev-8ec9069a432c873e52e6f4ce1496f282a4299604.zip
x86/idt: Remove address argument from idt_invalidate()
There is no reason to specify any specific address to idt_invalidate(). It looks mostly like an artifact of unifying code done differently by accident. The most "sensible" address to set here is a NULL pointer - virtual address zero, just as a visual marker. This also makes it possible to mark the struct desc_ptr in idt_invalidate() as static const. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210519212154.511983-5-hpa@zytor.com
Diffstat (limited to 'arch/x86/kernel/machine_kexec_32.c')
-rw-r--r--arch/x86/kernel/machine_kexec_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c
index 64b00b0d7fe8..1e34feebcd5d 100644
--- a/arch/x86/kernel/machine_kexec_32.c
+++ b/arch/x86/kernel/machine_kexec_32.c
@@ -232,7 +232,7 @@ void machine_kexec(struct kimage *image)
* The gdt & idt are now invalid.
* If you want to load them you must set up your own idt & gdt.
*/
- idt_invalidate(phys_to_virt(0));
+ idt_invalidate();
set_gdt(phys_to_virt(0), 0);
/* now call it */