]> git.baikalelectronics.ru Git - kernel.git/commit
x86/idt: Consolidate idt functionality
authorThomas Gleixner <tglx@linutronix.de>
Thu, 28 May 2020 14:53:20 +0000 (16:53 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:26 +0000 (15:15 +0200)
commitabfe93a9b174603721b008a318d36a8075833e1d
tree6bc8e8b203695a35c7a68488c7641280664151f0
parent300e8877a16d0e1cbf04ac47515e03c59c3741e4
x86/idt: Consolidate idt functionality

 - Move load_current_idt() out of line and replace the hideous comment with
   a lockdep assert. This allows to make idt_table and idt_descr static.

 - Mark idt_table read only after the IDT initialization is complete.

 - Shuffle code around to consolidate the #ifdef sections into one.

 - Adapt the F00F bug code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200528145523.084915381@linutronix.de
arch/x86/include/asm/desc.h
arch/x86/kernel/idt.c
arch/x86/mm/fault.c