WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Fix 32pae build failure introduced by changeset 17795: 268a9f8286f3
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Fix 32pae build failure introduced by changeset 17795: 268a9f8286f3, Cui, Dexuan <=