Cui, Dexuan
2008-Jun-10 07:01 UTC
[Xen-devel] 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@lists.xensource.com http://lists.xensource.com/xen-devel