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-changelog

[Xen-changelog] [xen-3.4-testing] hvmloader: Fix get_memsize() to cast h

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits.
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Jul 2009 02:45:44 -0700
Delivery-date: Fri, 24 Jul 2009 02:47:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1248428566 -3600
# Node ID 1b143318a6ee15cf7ccc6d54b8468020684eed88
# Parent  0171f9316e2510c91d21992c72c6ab71f01d481b
hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits.

Signed-off-by: Joe Jin <joe.jin@xxxxxxxxxx>
xen-unstable changeset:   19982:6d7985ff6b69
xen-unstable date:        Fri Jul 24 10:37:52 2009 +0100
---
 tools/firmware/hvmloader/smbios.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 0171f9316e25 -r 1b143318a6ee tools/firmware/hvmloader/smbios.c
--- a/tools/firmware/hvmloader/smbios.c Thu Jul 23 09:08:13 2009 +0100
+++ b/tools/firmware/hvmloader/smbios.c Fri Jul 24 10:42:46 2009 +0100
@@ -148,7 +148,8 @@ get_memsize(void)
 
     sz = (uint64_t)hvm_info->low_mem_pgend << PAGE_SHIFT;
     if ( hvm_info->high_mem_pgend )
-        sz += (hvm_info->high_mem_pgend << PAGE_SHIFT) - (1ull << 32);
+        sz += (((uint64_t)hvm_info->high_mem_pgend << PAGE_SHIFT)
+               - (1ull << 32));
 
     /*
      * Round up to the nearest MB.  The user specifies domU pseudo-physical 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits., Xen patchbot-3.4-testing <=