ia64/xen-unstable

changeset 8795:c83c242916ea

x86-64 linux: remove dead code
Remove left-over pieces from native interrupt handling.

From: Jan Beulich <JBeulich@novell.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Feb 08 15:45:11 2006 +0000 (2006-02-08)
parents 7bdac903cfdd
children 40c309827ee5
files linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S	Wed Feb 08 15:43:01 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S	Wed Feb 08 15:45:11 2006 +0000
     1.3 @@ -492,42 +492,10 @@ ENTRY(stub_rt_sigreturn)
     1.4  #define XCPT_FRAME _frame ORIG_RAX
     1.5  
     1.6  /* 
     1.7 - * Interrupt entry/exit.
     1.8 + * Interrupt exit.
     1.9   *
    1.10 - * Interrupt entry points save only callee clobbered registers in fast path.
    1.11 - *	
    1.12 - * Entry runs with interrupts off.	
    1.13   */ 
    1.14  
    1.15 -/* 0(%rsp): interrupt number */ 
    1.16 -	.macro interrupt func
    1.17 -	cld
    1.18 -#ifdef CONFIG_DEBUG_INFO
    1.19 -	SAVE_ALL	
    1.20 -	movq %rsp,%rdi
    1.21 -	/*
    1.22 -	 * Setup a stack frame pointer.  This allows gdb to trace
    1.23 -	 * back to the original stack.
    1.24 -	 */
    1.25 -	movq %rsp,%rbp
    1.26 -	CFI_DEF_CFA_REGISTER	rbp
    1.27 -#else		
    1.28 -	SAVE_ARGS
    1.29 -	leaq -ARGOFFSET(%rsp),%rdi	# arg1 for handler
    1.30 -#endif	
    1.31 -#if 0 /* For Xen we don't need to do this */       
    1.32 -	testl $3,CS(%rdi)
    1.33 -	je 1f
    1.34 -	swapgs	
    1.35 -#endif        
    1.36 -1:	incl    %gs:pda_irqcount	# RED-PEN should check preempt count
    1.37 -	movq %gs:pda_irqstackptr,%rax
    1.38 -	cmoveq %rax,%rsp /*todo This needs CFI annotation! */
    1.39 -	pushq %rdi			# save old stack	
    1.40 -	CFI_ADJUST_CFA_OFFSET	8
    1.41 -	call \func
    1.42 -	.endm
    1.43 -
    1.44  retint_check:
    1.45  	movl threadinfo_flags(%rcx),%edx
    1.46  	andl %edi,%edx
    1.47 @@ -639,7 +607,6 @@ ENTRY(invalidate_interrupt\num)
    1.48  ENTRY(call_function_interrupt)
    1.49  	apicinterrupt CALL_FUNCTION_VECTOR,smp_call_function_interrupt
    1.50  #endif
    1.51 -#endif /* !CONFIG_XEN */
    1.52  
    1.53  #ifdef CONFIG_X86_LOCAL_APIC	
    1.54  ENTRY(apic_timer_interrupt)
    1.55 @@ -651,6 +618,7 @@ ENTRY(error_interrupt)
    1.56  ENTRY(spurious_interrupt)
    1.57  	apicinterrupt SPURIOUS_APIC_VECTOR,smp_spurious_interrupt
    1.58  #endif
    1.59 +#endif /* !CONFIG_XEN */
    1.60  				
    1.61  /*
    1.62   * Exception entry points.