[PATCH 2/7] traps: x86_64: add TRACE_IRQS_OFF in paranoidentry macro

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander van Heukelum
Date: Friday, September 26, 2008 - 5:03 am

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 <fastmail.fm>
---
 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 78fa552..14ea704 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -932,6 +932,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)
-- 
1.5.4.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] traps: x86: irqtrace cleanup and some traps.c ..., Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 1/7] traps: x86_64: add TRACE_IRQS_OFF in error_entry, Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 2/7] traps: x86_64: add TRACE_IRQS_OFF in paranoide ..., Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 3/7] traps: x86_64: remove trace_hardirqs_fixup fro ..., Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 4/7] traps: x86_64: remove trace_hardirqs_fixup fro ..., Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 5/7] traps: x86_64: remove trace_hardirqs_fixup fro ..., Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 6/7] traps: x86: remove trace_hardirqs_fixup from p ..., Alexander van Heukelum, (Fri Sep 26, 5:03 am)
[PATCH 7/7] traps: i386: make do_trap more like x86_64, Alexander van Heukelum, (Fri Sep 26, 5:03 am)
Re: [PATCH 1/7] traps: x86_64: add TRACE_IRQS_OFF in error ..., Alexander van Heukelum, (Fri Sep 26, 5:39 am)