From: Christoph Egger Date: Wed, 13 Apr 2011 13:14:32 +0000 (+0100) Subject: x86/hvm/asid: Use C99 integer types for asid numbers X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ac904f69e1b89d9cb70855aaae396cb79ffad8cc;p=xen.git x86/hvm/asid: Use C99 integer types for asid numbers Signed-off-by: Christoph Egger --- diff --git a/xen/arch/x86/hvm/asid.c b/xen/arch/x86/hvm/asid.c index 473b0216e4..1cccaf53d5 100644 --- a/xen/arch/x86/hvm/asid.c +++ b/xen/arch/x86/hvm/asid.c @@ -48,9 +48,9 @@ /* Per-CPU ASID management. */ struct hvm_asid_data { - u64 core_asid_generation; - u32 next_asid; - u32 max_asid; + uint64_t core_asid_generation; + uint32_t next_asid; + uint32_t max_asid; bool_t disabled; }; @@ -58,7 +58,7 @@ static DEFINE_PER_CPU(struct hvm_asid_data, hvm_asid_data); void hvm_asid_init(int nasids) { - static s8 g_disabled = -1; + static int8_t g_disabled = -1; struct hvm_asid_data *data = &this_cpu(hvm_asid_data); data->max_asid = nasids - 1; diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index a5e3401fe0..eabecaaccc 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -100,8 +100,8 @@ struct hvm_vcpu { bool_t hcall_preempted; bool_t hcall_64bit; - u64 asid_generation; - u32 asid; + uint64_t asid_generation; + uint32_t asid; u32 msr_tsc_aux;