x86/entry: Convert device interrupts to inline stack switching
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Feb 2021 23:40:48 +0000 (00:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 22:34:15 +0000 (23:34 +0100)
commit5b51e1db9bdc312d53087a0c97d54ea150111c0d
treeac85323cbf921a2291585161daf780fe7d924ba1
parent569dd8b4eb7ef666b467c41b8e8e4f2820d07f67
x86/entry: Convert device interrupts to inline stack switching

Convert device interrupts to inline stack switching by replacing the
existing macro implementation with the new inline version. Tweak the
function signature of the actual handler function to have the vector
argument as u32. That allows the inline macro to avoid extra intermediates
and lets the compiler be smarter about the whole thing.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210210002512.769728139@linutronix.de
arch/x86/entry/entry_64.S
arch/x86/include/asm/idtentry.h
arch/x86/include/asm/irq_stack.h
arch/x86/kernel/irq.c