]> git.baikalelectronics.ru Git - kernel.git/commit
x86/traps: Prepare for using DEFINE_IDTENTRY
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Feb 2020 22:16:13 +0000 (23:16 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:45 +0000 (15:14 +0200)
commit5b939e56c8ebc1cc14f8a139ccb561eb0864b54d
tree389b0968208a8b779fc4b10e49688414e3de7d7a
parent39bd4a4c8c9aebe67825d667f0120e9bb6d4675e
x86/traps: Prepare for using DEFINE_IDTENTRY

Prepare for using IDTENTRY to define the C exception/trap entry points. It
would be possible to glue this into the existing macro maze, but it's
simpler and better to read at the end to just make them distinct.

Provide a trivial inline helper to read the trap address and add a comment
explaining the logic behind it.

The existing macros will be removed once all instances are converted.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200505134904.556327833@linutronix.de
arch/x86/kernel/traps.c