Skip to content

Commit

Permalink
x86/entry/64: Simplify idtentry_body
Browse files Browse the repository at this point in the history
All C functions which do not have an error code have been converted to the
new IDTENTRY interface which does not expect an error code in the
arguments. Spare the XORL.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20200521202118.145811853@linutronix.de
  • Loading branch information
Thomas Gleixner committed Jun 11, 2020
1 parent 2f6474e commit 00cf8ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/entry/entry_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,6 @@ SYM_CODE_END(spurious_entries_start)
.if \has_error_code == 1
movq ORIG_RAX(%rsp), %rsi /* get error code into 2nd argument*/
movq $-1, ORIG_RAX(%rsp) /* no syscall to restart */
.else
xorl %esi, %esi /* Clear the error code */
.endif

.if \vector == X86_TRAP_PF
Expand Down

0 comments on commit 00cf8ba

Please sign in to comment.