]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/entry/64: Remove error code clearing from #DB and #MCE ASM stub
authorThomas Gleixner <tglx@linutronix.de>
Tue, 25 Feb 2020 22:33:27 +0000 (23:33 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:00 +0000 (15:15 +0200)
The C entry points do not expect an error code.

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.992621707@linutronix.de
arch/x86/entry/entry_64.S

index f47629a7f8e641c39f9a005db810115ead83eb8d..eeb428582d3da678e68be21edef6470296d6dc27 100644 (file)
@@ -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)