]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro
authorAlexander van Heukelum <heukelum@fastmail.fm>
Fri, 26 Sep 2008 12:03:03 +0000 (14:03 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:21:55 +0000 (10:21 +0200)
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 <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/entry_64.S

index 963b35b81bcc5dc3a9cde29168ade5c1ad1fa79d..977c8ea660288612a2de3b1dcd24d1e47d26523c 100644 (file)
@@ -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)