ia64/xen-unstable

changeset 9002:ff019fb073e4

[IA64] cleanup warning in xen/ia64 (include/asm-ia64)

These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.

Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Tue Feb 28 10:21:54 2006 -0700 (2006-02-28)
parents b5a6da522577
children 5e751dddf4d0
files xen/include/asm-ia64/config.h xen/include/asm-ia64/mm.h xen/include/asm-ia64/vcpu.h
line diff
     1.1 --- a/xen/include/asm-ia64/config.h	Tue Feb 28 10:13:55 2006 -0700
     1.2 +++ b/xen/include/asm-ia64/config.h	Tue Feb 28 10:21:54 2006 -0700
     1.3 @@ -255,7 +255,7 @@ struct screen_info { };
     1.4  #define CONFIG_BLK_DEV_INITRD // needed to reserve memory for domain0
     1.5  
     1.6  void dummy_called(char *function);
     1.7 -#define dummy()	dummy_called(__FUNCTION__)
     1.8 +#define dummy()	dummy_called((char *) __FUNCTION__)
     1.9  
    1.10  // these declarations got moved at some point, find a better place for them
    1.11  extern int ht_per_core;
     2.1 --- a/xen/include/asm-ia64/mm.h	Tue Feb 28 10:13:55 2006 -0700
     2.2 +++ b/xen/include/asm-ia64/mm.h	Tue Feb 28 10:21:54 2006 -0700
     2.3 @@ -407,6 +407,7 @@ extern unsigned long totalram_pages;
     2.4  extern int nr_swap_pages;
     2.5  
     2.6  extern unsigned long *mpt_table;
     2.7 +extern unsigned long gmfn_to_mfn_foreign(struct domain *d, unsigned long gpfn);
     2.8  extern unsigned long lookup_domain_mpa(struct domain *d, unsigned long mpaddr);
     2.9  #undef machine_to_phys_mapping
    2.10  #define machine_to_phys_mapping	mpt_table
     3.1 --- a/xen/include/asm-ia64/vcpu.h	Tue Feb 28 10:13:55 2006 -0700
     3.2 +++ b/xen/include/asm-ia64/vcpu.h	Tue Feb 28 10:21:54 2006 -0700
     3.3 @@ -38,7 +38,9 @@ extern UINT64 vcpu_get_gr(VCPU *vcpu, un
     3.4  extern IA64FAULT vcpu_get_gr_nat(VCPU *vcpu, unsigned long reg, UINT64 *val);
     3.5  extern IA64FAULT vcpu_set_gr(VCPU *vcpu, unsigned long reg, UINT64 value, int nat);
     3.6  /* application registers */
     3.7 +extern void vcpu_load_kernel_regs(VCPU *vcpu);
     3.8  extern IA64FAULT vcpu_set_ar(VCPU *vcpu, UINT64 reg, UINT64 val);
     3.9 +extern IA64FAULT vcpu_get_ar(VCPU *vcpu, UINT64 reg, UINT64 *val);
    3.10  /* psr */
    3.11  extern BOOLEAN vcpu_get_psr_ic(VCPU *vcpu);
    3.12  extern UINT64 vcpu_get_ipsr_int_state(VCPU *vcpu,UINT64 prevpsr);
    3.13 @@ -46,6 +48,9 @@ extern IA64FAULT vcpu_get_psr(VCPU *vcpu
    3.14  extern IA64FAULT vcpu_reset_psr_sm(VCPU *vcpu, UINT64 imm);
    3.15  extern IA64FAULT vcpu_set_psr_sm(VCPU *vcpu, UINT64 imm);
    3.16  extern IA64FAULT vcpu_set_psr_l(VCPU *vcpu, UINT64 val);
    3.17 +extern IA64FAULT vcpu_set_psr_i(VCPU *vcpu);
    3.18 +extern IA64FAULT vcpu_reset_psr_dt(VCPU *vcpu);
    3.19 +extern IA64FAULT vcpu_set_psr_dt(VCPU *vcpu);
    3.20  /* control registers */
    3.21  extern IA64FAULT vcpu_set_dcr(VCPU *vcpu, UINT64 val);
    3.22  extern IA64FAULT vcpu_set_itm(VCPU *vcpu, UINT64 val);
    3.23 @@ -89,6 +94,8 @@ extern IA64FAULT vcpu_get_irr3(VCPU *vcp
    3.24  extern IA64FAULT vcpu_get_lrr0(VCPU *vcpu, UINT64 *pval);
    3.25  extern IA64FAULT vcpu_get_lrr1(VCPU *vcpu, UINT64 *pval);
    3.26  /* interrupt registers */
    3.27 +extern void vcpu_pend_unspecified_interrupt(VCPU *vcpu);
    3.28 +extern UINT64 vcpu_check_pending_interrupts(VCPU *vcpu);
    3.29  extern IA64FAULT vcpu_get_itv(VCPU *vcpu,UINT64 *pval);
    3.30  extern IA64FAULT vcpu_get_pmv(VCPU *vcpu,UINT64 *pval);
    3.31  extern IA64FAULT vcpu_get_cmcv(VCPU *vcpu,UINT64 *pval);
    3.32 @@ -99,6 +106,7 @@ extern IA64FAULT vcpu_set_cmcv(VCPU *vcp
    3.33  /* interval timer registers */
    3.34  extern IA64FAULT vcpu_set_itm(VCPU *vcpu,UINT64 val);
    3.35  extern IA64FAULT vcpu_set_itc(VCPU *vcpu,UINT64 val);
    3.36 +extern UINT64 vcpu_timer_pending_early(VCPU *vcpu);
    3.37  /* debug breakpoint registers */
    3.38  extern IA64FAULT vcpu_set_ibr(VCPU *vcpu,UINT64 reg,UINT64 val);
    3.39  extern IA64FAULT vcpu_set_dbr(VCPU *vcpu,UINT64 reg,UINT64 val);
    3.40 @@ -135,9 +143,14 @@ extern IA64FAULT vcpu_ptr_d(VCPU *vcpu,U
    3.41  extern IA64FAULT vcpu_ptr_i(VCPU *vcpu,UINT64 vadr, UINT64 addr_range);
    3.42  extern IA64FAULT vcpu_translate(VCPU *vcpu, UINT64 address, BOOLEAN is_data, UINT64 *pteval, UINT64 *itir, UINT64 *iha);
    3.43  extern IA64FAULT vcpu_tpa(VCPU *vcpu, UINT64 vadr, UINT64 *padr);
    3.44 +extern IA64FAULT vcpu_force_data_miss(VCPU *vcpu, UINT64 ifa);
    3.45 +extern IA64FAULT vcpu_fc(VCPU *vcpu, UINT64 vadr);
    3.46  /* misc */
    3.47  extern IA64FAULT vcpu_rfi(VCPU *vcpu);
    3.48  extern IA64FAULT vcpu_thash(VCPU *vcpu, UINT64 vadr, UINT64 *pval);
    3.49 +extern IA64FAULT vcpu_cover(VCPU *vcpu);
    3.50 +extern IA64FAULT vcpu_ttag(VCPU *vcpu, UINT64 vadr, UINT64 *padr);
    3.51 +extern IA64FAULT vcpu_get_cpuid(VCPU *vcpu, UINT64 reg, UINT64 *pval);
    3.52  
    3.53  extern void vcpu_pend_interrupt(VCPU *vcpu, UINT64 vector);
    3.54  extern void vcpu_pend_timer(VCPU *vcpu);