ia64/xen-unstable

changeset 12456:fd86132cc3cd

[IA64] MCA support - Add MCA offset entry

Signed-off-by: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Sun Oct 29 09:27:21 2006 -0700 (2006-10-29)
parents 6da8ccfa61d3
children 8afae91f0d63
files xen/arch/ia64/asm-offsets.c
line diff
     1.1 --- a/xen/arch/ia64/asm-offsets.c	Sun Oct 29 09:27:20 2006 -0700
     1.2 +++ b/xen/arch/ia64/asm-offsets.c	Sun Oct 29 09:27:21 2006 -0700
     1.3 @@ -12,6 +12,7 @@
     1.4  #include <public/xen.h>
     1.5  #include <asm/tlb.h>
     1.6  #include <asm/regs.h>
     1.7 +#include <asm/xenmca.h>
     1.8  
     1.9  #define task_struct vcpu
    1.10  
    1.11 @@ -220,4 +221,37 @@ void foo(void)
    1.12  	DEFINE(FAST_HYPERPRIVOP_PERFC_OFS, offsetof (struct perfcounter, fast_hyperprivop));
    1.13  	DEFINE(FAST_REFLECT_PERFC_OFS, offsetof (struct perfcounter, fast_reflect));
    1.14  #endif
    1.15 +
    1.16 +	BLANK();
    1.17 +	DEFINE(IA64_CPUINFO_PTCE_BASE_OFFSET,
    1.18 +	       offsetof(struct cpuinfo_ia64, ptce_base));
    1.19 +	DEFINE(IA64_CPUINFO_PTCE_COUNT_OFFSET,
    1.20 +	       offsetof(struct cpuinfo_ia64, ptce_count));
    1.21 +	DEFINE(IA64_CPUINFO_PTCE_STRIDE_OFFSET,
    1.22 +	       offsetof(struct cpuinfo_ia64, ptce_stride));
    1.23 +
    1.24 +	BLANK();
    1.25 +	DEFINE(IA64_MCA_CPU_PROC_STATE_DUMP_OFFSET,
    1.26 +	       offsetof(struct ia64_mca_cpu, proc_state_dump));
    1.27 +	DEFINE(IA64_MCA_CPU_STACK_OFFSET,
    1.28 +	       offsetof(struct ia64_mca_cpu, stack));
    1.29 +	DEFINE(IA64_MCA_CPU_STACKFRAME_OFFSET,
    1.30 +	       offsetof(struct ia64_mca_cpu, stackframe));
    1.31 +	DEFINE(IA64_MCA_CPU_RBSTORE_OFFSET,
    1.32 +	       offsetof(struct ia64_mca_cpu, rbstore));
    1.33 +
    1.34 +	DEFINE(IA64_DOMAIN_SHARED_INFO_OFFSET,
    1.35 +	       offsetof(struct domain, shared_info));
    1.36 +	DEFINE(IA64_DOMAIN_SHARED_INFO_VA_OFFSET,
    1.37 +	       offsetof(struct domain, arch.shared_info_va));
    1.38 +	DEFINE(IA64_DOMAIN_FLAGS_OFFSET,
    1.39 +	       offsetof(struct domain, arch.flags));
    1.40 +
    1.41 +	DEFINE(IA64_VCPU_VHPT_MADDR_OFFSET,
    1.42 +	       offsetof(struct vcpu, arch.vhpt_maddr));
    1.43 +
    1.44 +	BLANK();
    1.45 +	DEFINE(IA64_MCA_TLB_INFO_SIZE, sizeof(struct ia64_mca_tlb_info));
    1.46 +	DEFINE(IA64_MCA_PERCPU_OFFSET,
    1.47 +	       offsetof(struct ia64_mca_tlb_info, percpu_paddr));
    1.48  }