[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Fix 32pae build failure introduced by changeset 17795: 268a9f8286f3


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
  • Date: Tue, 10 Jun 2008 15:01:29 +0800
  • Delivery-date: Tue, 10 Jun 2008 00:02:22 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcjKx8rBdbPaiKE0S8CuSd8oWhbm8A==
  • Thread-topic: Fix 32pae build failure introduced by changeset 17795: 268a9f8286f3

For 32pae build, "uint32_t >> 32" causes a warning, which fails the
build.
 
-- Dexuan
 
 
diff -r 09dd5492651c xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c    Mon Jun 09 17:18:27 2008 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c    Tue Jun 10 13:44:21 2008 +0800
@@ -1177,7 +1177,7 @@ asmlinkage void svm_vmexit_handler(struc
 
     if ( hvm_long_mode_enabled(v) )
         HVMTRACE_ND (VMEXIT64, 1/*cycles*/, v, 3, exit_reason,
-            regs->eip & 0xFFFFFFFF, regs->eip >> 32, 0, 0, 0);
+            regs->eip & 0xFFFFFFFF, ((u64)regs->eip) >> 32, 0, 0, 0);
     else
         HVMTRACE_ND (VMEXIT, 1/*cycles*/, v, 2, exit_reason,
             regs->eip, 0, 0, 0, 0);
diff -r 09dd5492651c xen/arch/x86/hvm/vmx/vmx.c
--- a/xen/arch/x86/hvm/vmx/vmx.c    Mon Jun 09 17:18:27 2008 +0100
+++ b/xen/arch/x86/hvm/vmx/vmx.c    Tue Jun 10 13:43:47 2008 +0800
@@ -2022,7 +2022,7 @@ asmlinkage void vmx_vmexit_handler(struc
 
     if ( hvm_long_mode_enabled(v) )
         HVMTRACE_ND (VMEXIT64, 1/*cycles*/, v, 3, exit_reason,
-            regs->eip & 0xFFFFFFFF, regs->eip >> 32, 0, 0, 0);
+            regs->eip & 0xFFFFFFFF, ((u64)regs->eip) >> 32, 0, 0, 0);
     else
         HVMTRACE_ND (VMEXIT, 1/*cycles*/, v, 2, exit_reason,
             regs->eip, 0, 0, 0, 0);


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.