aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/idt.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2021-06-29 12:36:59 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2021-06-29 12:36:59 -0700
commita22c3f615a6fef6553e20c559d31ea817216b4e6 (patch)
tree40ee59c43ac71a7f7da1484cefeb6da3ce058ff3 /arch/x86/kernel/idt.c
parentMerge tag 'timers-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kern... (diff)
parentx86/kexec: Set_[gi]dt() -> native_[gi]dt_invalidate() in machine_kexec_*.c (diff)
downloadlinux-a22c3f615a6fef6553e20c559d31ea817216b4e6.tar.gz
linux-a22c3f615a6fef6553e20c559d31ea817216b4e6.tar.bz2
linux-a22c3f615a6fef6553e20c559d31ea817216b4e6.zip
Merge tag 'x86-irq-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 interrupt related updates from Thomas Gleixner: - Consolidate the VECTOR defines and the usage sites. - Cleanup GDT/IDT related code and replace open coded ASM with proper native helper functions. * tag 'x86-irq-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/kexec: Set_[gi]dt() -> native_[gi]dt_invalidate() in machine_kexec_*.c x86: Add native_[ig]dt_invalidate() x86/idt: Remove address argument from idt_invalidate() x86/irq: Add and use NR_EXTERNAL_VECTORS and NR_SYSTEM_VECTORS x86/irq: Remove unused vectors defines
Diffstat (limited to 'arch/x86/kernel/idt.c')
-rw-r--r--arch/x86/kernel/idt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c
index 6cce6047fa12..df0fa695bb09 100644
--- a/arch/x86/kernel/idt.c
+++ b/arch/x86/kernel/idt.c
@@ -315,11 +315,10 @@ void __init idt_setup_early_handler(void)
/**
* idt_invalidate - Invalidate interrupt descriptor table
- * @addr: The virtual address of the 'invalid' IDT
*/
-void idt_invalidate(void *addr)
+void idt_invalidate(void)
{
- struct desc_ptr idt = { .address = (unsigned long) addr, .size = 0 };
+ static const struct desc_ptr idt = { .address = 0, .size = 0 };
load_idt(&idt);
}