x86/entry: Convert Alignment check exception to IDTENTRY

Convert #AC to IDTENTRY_ERRORCODE:
  - Implement the C entry point with DEFINE_IDTENTRY
  - Emit the ASM stub with DECLARE_IDTENTRY
  - Remove the ASM idtentry in 64bit
  - Remove the open coded ASM entry code in 32bit
  - Fixup the XEN/PV code
  - Remove the old prototypes
  - Remove the RCU warning as the new entry macro ensures correctness

No functional change.

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/20200505134905.928967113@linutronix.de
This commit is contained in:
Thomas Gleixner
2020-02-25 23:16:28 +01:00
parent 14a8bd2aa7
commit 436608bb00
8 changed files with 5 additions and 16 deletions

View File

@@ -1311,12 +1311,6 @@ SYM_CODE_START(native_iret)
SYM_CODE_END(native_iret)
#endif
SYM_CODE_START(alignment_check)
ASM_CLAC
pushl $do_alignment_check
jmp common_exception
SYM_CODE_END(alignment_check)
#ifdef CONFIG_X86_MCE
SYM_CODE_START(machine_check)
ASM_CLAC