From: Alexander van Heukelum Date: Fri, 26 Sep 2008 12:03:02 +0000 (+0200) Subject: traps: x86_64: add TRACE_IRQS_OFF in error_entry X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b11d4ef3e4d6ce83fb177aa50fdf385abb17d1a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git traps: x86_64: add TRACE_IRQS_OFF in error_entry Add TRACE_IRQS_OFF just before entering the C code. All exceptions are taken via interrupt gates. If irq tracing is enabled, it should be notified as soon as possible. Interrupts are only (conditionally) re-enabled in C code. Signed-off-by: Alexander van Heukelum Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S index 25bb3f9b2552..963b35b81bcc 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S @@ -1065,7 +1065,8 @@ KPROBE_ENTRY(error_entry) je error_kernelspace error_swapgs: SWAPGS -error_sti: +error_sti: + TRACE_IRQS_OFF movq %rdi,RDI(%rsp) CFI_REL_OFFSET rdi,RDI movq %rsp,%rdi