traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, October 13, 2008 - 11:08 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7e61a7...
Commit:     7e61a7932495e37685e95ec9a59ad08810dec959
Parent:     6b11d4ef3e4d6ce83fb177aa50fdf385abb17d1a
Author:     Alexander van Heukelum <heukelum@fastmail.fm>
AuthorDate: Fri Sep 26 14:03:03 2008 +0200
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Mon Oct 13 10:21:55 2008 +0200

    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 <heukelum@fastmail.fm>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/entry_64.S |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index 963b35b..977c8ea 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)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro, Linux Kernel Mailing ..., (Mon Oct 13, 11:08 am)