]> xenbits.xensource.com Git - xen.git/commitdiff
x86/hvm/asid: Use C99 integer types for asid numbers
authorChristoph Egger <Christoph.Egger@amd.com>
Wed, 13 Apr 2011 13:14:32 +0000 (14:14 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Wed, 13 Apr 2011 13:14:32 +0000 (14:14 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen/arch/x86/hvm/asid.c
xen/include/asm-x86/hvm/vcpu.h

index 473b0216e4a695b194476f1f3e558ed5db2046a7..1cccaf53d5955a1aef7d2495d27c5d4ba82f6933 100644 (file)
@@ -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;
index a5e3401fe08d300d8f281c62e984d85f081d8d58..eabecaaccc7fdffac4c65668ab1c5cceeacbb99f 100644 (file)
@@ -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;