x86/idt: Remove address argument from idt_invalidate()
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Wed, 19 May 2021 21:21:50 +0000 (14:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 21 May 2021 10:36:45 +0000 (12:36 +0200)
commit8ec9069a432c873e52e6f4ce1496f282a4299604
treeab99b48163ee8596d3eb563c3f067e9dfb944117
parentff851003880de9d1111498877551ba16668c38ef
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
arch/x86/include/asm/desc.h
arch/x86/kernel/idt.c
arch/x86/kernel/machine_kexec_32.c
arch/x86/kernel/reboot.c