All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] [PATCH 2/4] x86_64: fix TRACE_IRQS_OFF regression
@ 2007-12-26 15:37 Jan Kiszka
  2007-12-26 21:47 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2007-12-26 15:37 UTC (permalink / raw)
  To: adeos-main; +Cc: Philippe Gerum


[-- Attachment #1.1: Type: text/plain, Size: 124 bytes --]

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

Jan



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: fix-irqtrace-thunk-x86_64.patch --]
[-- Type: text/x-patch; name="fix-irqtrace-thunk-x86_64.patch", Size: 583 bytes --]

---
 arch/x86_64/kernel/entry.S |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.23.12-xeno_64/arch/x86_64/kernel/entry.S
===================================================================
--- linux-2.6.23.12-xeno_64.orig/arch/x86_64/kernel/entry.S
+++ 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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-26 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-26 15:37 [Adeos-main] [PATCH 2/4] x86_64: fix TRACE_IRQS_OFF regression Jan Kiszka
2007-12-26 21:47 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.