[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] x86-64 linux: remove dead code



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID c83c242916eaf1d40e122f8347b298bdbf84d1b7
# Parent  7bdac903cfdd24b39ae4f7afeea9479f3e6b9b65
x86-64 linux: remove dead code
Remove left-over pieces from native interrupt handling.

From: Jan Beulich <JBeulich@xxxxxxxxxx>
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 7bdac903cfdd -r c83c242916ea 
linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S
--- a/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S       Wed Feb  8 
15:43:01 2006
+++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S       Wed Feb  8 
15:45:11 2006
@@ -492,41 +492,9 @@
 #define XCPT_FRAME _frame ORIG_RAX
 
 /* 
- * Interrupt entry/exit.
+ * Interrupt exit.
  *
- * Interrupt entry points save only callee clobbered registers in fast path.
- *     
- * Entry runs with interrupts off.     
  */ 
-
-/* 0(%rsp): interrupt number */ 
-       .macro interrupt func
-       cld
-#ifdef CONFIG_DEBUG_INFO
-       SAVE_ALL        
-       movq %rsp,%rdi
-       /*
-        * Setup a stack frame pointer.  This allows gdb to trace
-        * back to the original stack.
-        */
-       movq %rsp,%rbp
-       CFI_DEF_CFA_REGISTER    rbp
-#else          
-       SAVE_ARGS
-       leaq -ARGOFFSET(%rsp),%rdi      # arg1 for handler
-#endif 
-#if 0 /* For Xen we don't need to do this */       
-       testl $3,CS(%rdi)
-       je 1f
-       swapgs  
-#endif        
-1:     incl    %gs:pda_irqcount        # RED-PEN should check preempt count
-       movq %gs:pda_irqstackptr,%rax
-       cmoveq %rax,%rsp /*todo This needs CFI annotation! */
-       pushq %rdi                      # save old stack        
-       CFI_ADJUST_CFA_OFFSET   8
-       call \func
-       .endm
 
 retint_check:
        movl threadinfo_flags(%rcx),%edx
@@ -639,7 +607,6 @@
 ENTRY(call_function_interrupt)
        apicinterrupt CALL_FUNCTION_VECTOR,smp_call_function_interrupt
 #endif
-#endif /* !CONFIG_XEN */
 
 #ifdef CONFIG_X86_LOCAL_APIC   
 ENTRY(apic_timer_interrupt)
@@ -651,6 +618,7 @@
 ENTRY(spurious_interrupt)
        apicinterrupt SPURIOUS_APIC_VECTOR,smp_spurious_interrupt
 #endif
+#endif /* !CONFIG_XEN */
                                
 /*
  * Exception entry points.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.