[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1248428272 -3600 # Node ID 6d7985ff6b69c20841e283e7c28fd16e8cc487a9 # Parent bc3aca17cb88b23bf6bb7c26cbed320f241aa739 hvmloader: Fix get_memsize() to cast high_mem_pgend to 64 bits. Signed-off-by: Joe Jin <joe.jin@xxxxxxxxxx> --- tools/firmware/hvmloader/smbios.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r bc3aca17cb88 -r 6d7985ff6b69 tools/firmware/hvmloader/smbios.c --- a/tools/firmware/hvmloader/smbios.c Thu Jul 23 09:01:30 2009 +0100 +++ b/tools/firmware/hvmloader/smbios.c Fri Jul 24 10:37:52 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |