From: Alexander van Heukelum Date: Fri, 26 Sep 2008 12:03:03 +0000 (+0200) Subject: traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro X-Git-Tag: v2.6.28-rc1~611^2~43 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7e61a7932495e37685e95ec9a59ad08810dec959;p=linux-2.6-omap-h63xx.git traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro 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 963b35b81bc..977c8ea6602 100644 --- a/arch/x86/kernel/entry_64.S +++ b/arch/x86/kernel/entry_64.S @@ -939,6 +939,9 @@ END(spurious_interrupt) .if \ist movq %gs:pda_data_offset, %rbp .endif + .if \irqtrace + TRACE_IRQS_OFF + .endif movq %rsp,%rdi movq ORIG_RAX(%rsp),%rsi movq $-1,ORIG_RAX(%rsp)