direct-io.hg

changeset 10762:e448723613ab

[IA64] Clean up unused functions

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild.aw
date Mon Jul 03 08:29:57 2006 -0600 (2006-07-03)
parents aa8257def6dc
children f4eb1e5cc9e7
files xen/arch/ia64/vmx/vmx_phy_mode.c xen/arch/ia64/xen/regionreg.c xen/include/asm-ia64/regionreg.h xen/include/asm-ia64/vmx_phy_mode.h
line diff
     1.1 --- a/xen/arch/ia64/vmx/vmx_phy_mode.c	Mon Jul 03 08:27:24 2006 -0600
     1.2 +++ b/xen/arch/ia64/vmx/vmx_phy_mode.c	Mon Jul 03 08:29:57 2006 -0600
     1.3 @@ -204,23 +204,7 @@ vmx_load_all_rr(VCPU *vcpu)
     1.4  	ia64_srlz_i();
     1.5  }
     1.6  
     1.7 -void
     1.8 -vmx_load_rr7_and_pta(VCPU *vcpu)
     1.9 -{
    1.10 -	unsigned long psr;
    1.11  
    1.12 -	local_irq_save(psr);
    1.13 -
    1.14 -	vmx_switch_rr7(vrrtomrr(vcpu,VMX(vcpu, vrr[VRN7])),
    1.15 -			(void *)vcpu->domain->shared_info,
    1.16 -			(void *)vcpu->arch.privregs,
    1.17 -			(void *)vcpu->arch.vhpt.hash, pal_vaddr );
    1.18 -	ia64_set_pta(vcpu->arch.arch_vmx.mpta);
    1.19 -
    1.20 -	ia64_srlz_d();
    1.21 -	local_irq_restore(psr);
    1.22 -	ia64_srlz_i();
    1.23 -}
    1.24  
    1.25  void
    1.26  switch_to_physical_rid(VCPU *vcpu)
     2.1 --- a/xen/arch/ia64/xen/regionreg.c	Mon Jul 03 08:27:24 2006 -0600
     2.2 +++ b/xen/arch/ia64/xen/regionreg.c	Mon Jul 03 08:29:57 2006 -0600
     2.3 @@ -342,22 +342,3 @@ void load_region_regs(struct vcpu *v)
     2.4  		panic_domain(0,"load_region_regs: can't set! bad=%lx\n",bad);
     2.5  	}
     2.6  }
     2.7 -
     2.8 -void load_region_reg7_and_pta(struct vcpu *v)
     2.9 -{
    2.10 -	unsigned long rr7, pta;
    2.11 -
    2.12 -	if (!is_idle_domain(v->domain)) {  
    2.13 -		ia64_set_pta(VHPT_ADDR | (1 << 8) | (VHPT_SIZE_LOG2 << 2) |
    2.14 -		             VHPT_ENABLED);
    2.15 -
    2.16 -		// TODO: These probably should be validated
    2.17 -		rr7 =  VCPU(v,rrs[7]);
    2.18 -		if (!set_one_rr(0xe000000000000000L, rr7))
    2.19 -			panic_domain(0, "%s: can't set!\n", __func__);
    2.20 -	}
    2.21 -	else {
    2.22 -		pta = ia64_get_pta();
    2.23 -		ia64_set_pta(pta & ~VHPT_ENABLED);
    2.24 -	}
    2.25 -}
     3.1 --- a/xen/include/asm-ia64/regionreg.h	Mon Jul 03 08:27:24 2006 -0600
     3.2 +++ b/xen/include/asm-ia64/regionreg.h	Mon Jul 03 08:29:57 2006 -0600
     3.3 @@ -79,6 +79,5 @@ extern void init_all_rr(struct vcpu *v);
     3.4  extern int set_metaphysical_rr0(void);
     3.5  
     3.6  extern void load_region_regs(struct vcpu *v);
     3.7 -extern void load_region_reg7_and_pta(struct vcpu *v);
     3.8  
     3.9  #endif		/* !_REGIONREG_H_ */
     4.1 --- a/xen/include/asm-ia64/vmx_phy_mode.h	Mon Jul 03 08:27:24 2006 -0600
     4.2 +++ b/xen/include/asm-ia64/vmx_phy_mode.h	Mon Jul 03 08:29:57 2006 -0600
     4.3 @@ -96,7 +96,6 @@ extern void prepare_if_physical_mode(VCP
     4.4  extern void recover_if_physical_mode(VCPU *vcpu);
     4.5  extern void vmx_init_all_rr(VCPU *vcpu);
     4.6  extern void vmx_load_all_rr(VCPU *vcpu);
     4.7 -extern void vmx_load_rr7_and_pta(VCPU *vcpu);
     4.8  extern void physical_tlb_miss(VCPU *vcpu, u64 vadr);
     4.9  /*
    4.10   * No sanity check here, since all psr changes have been