[PATCH 3/3] x86: Switch critical exceptions and NMI to irqstack
From: Avi Kivity
Date: Thu Dec 25 2008 - 15:59:41 EST
With the special exception stacks gone, the irqstack is a much safer place
than the regular task stacks.
Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---
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 245fecd..8f40593 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -917,7 +917,10 @@ END(spurious_interrupt)
movq %rsp,%rdi
movq ORIG_RAX(%rsp),%rsi
movq $-1,ORIG_RAX(%rsp)
+ mov %rsp, %rbp
+ enter_irqstack %rax
call \sym
+ mov %rbp, %rsp
DISABLE_INTERRUPTS(CLBR_NONE)
.if \irqtrace
TRACE_IRQS_OFF
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/