Skip to contentSkip to conversation

x86_64: fix TRACE_IRQS_OFF regression

PATCH In review Jan Kiszka 2 participants 2 messages Dec 26, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 2/4 x86_64: fix TRACE_IRQS_OFF regression

We need to save rax across the IRQ exit tracing, as it carries information about how to return from interrupt.

Jan

---
 arch/x86_64/kernel/entry.S |    2 ++
 1 file changed, 2 insertions(+)
arch/x86_64/kernel/entry.S +2 -0
Index: linux-2.6.23.12-xeno_64/arch/x86_64/kernel/entry.S
===================================================================
@@ -567,10 +567,12 @@ END(stub_rt_sigreturn)
 
 	popq %rbp
 	pushq %rbp
+	pushq %rax
 	movq 8-ARGOFFSET+ORIG_RAX(%rbp), %rdi
 	leaq 8-ARGOFFSET+RIP-8(%rbp), %rbp
 	notq %rdi
 	call ipipe_trace_end
+	popq %rax
 	popq %rbp
 	pushq %rbp
 #else
#1 lore raw
Quoted 3 lines · Jan Kiszka

We need to save rax across the IRQ exit tracing, as it carries information about how to return from interrupt.

Will merge (obviously). Thanks.

Signature · 1 line
Philippe.