From: Thomas Gleixner Date: Tue, 25 Feb 2020 22:33:27 +0000 (+0100) Subject: x86/entry/64: Remove error code clearing from #DB and #MCE ASM stub X-Git-Tag: v5.8-rc1~21^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df7ccaffd2035ebd4bfbb2d980e5817c31f4a891;p=thirdparty%2Flinux.git x86/entry/64: Remove error code clearing from #DB and #MCE ASM stub The C entry points do not expect an error code. Signed-off-by: Thomas Gleixner Reviewed-by: Alexandre Chartre Acked-by: Peter Zijlstra Acked-by: Andy Lutomirski Link: https://lkml.kernel.org/r/20200505135314.992621707@linutronix.de --- diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index f47629a7f8e64..eeb428582d3da 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -642,7 +642,6 @@ SYM_CODE_START(\asmsym) .endif movq %rsp, %rdi /* pt_regs pointer */ - xorl %esi, %esi /* Clear the error code */ .if \vector == X86_TRAP_DB subq $DB_STACK_OFFSET, CPU_TSS_IST(IST_INDEX_DB)