lkml.org 
[lkml]   [2008]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/3] x86: Switch critical exceptions and NMI to irqstack
Date
With the special exception stacks gone, the irqstack is a much safer place
than the regular task stacks.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
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


\
 
 \ /
  Last update: 2008-12-25 22:03    [W:0.491 / U:0.152 seconds]
©2003-2011 Jasper Spaans. Advertise on this site