]> git.baikalelectronics.ru Git - kernel.git/commit
x86/idtentry: Provide IDTENTRY_IST
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Feb 2020 22:33:22 +0000 (23:33 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:55 +0000 (15:14 +0200)
commit356816d7561f9ebd87d4e880a1db17cf816bb29f
tree84bdee4c629802b40098bba97fadbfa3211eef64
parent6af36add912797fb29e037a1b8d710eb58f7b2cb
x86/idtentry: Provide IDTENTRY_IST

Same as IDTENTRY but for exceptions which run on Interrupt Stacks (IST) on
64bit. For 32bit this maps to IDTENTRY.

There are 3 variants which will be used:
      IDTENTRY_MCE
      IDTENTRY_DB
      IDTENTRY_NMI

These map to IDTENTRY_IST, but only the MCE and DB variants are emitting
ASM code as the NMI entry needs hand crafted ASM still.

The function defines do not contain any idtenter/exit calls as these
exceptions need special treatment.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505135314.137125609@linutronix.de
arch/x86/include/asm/idtentry.h