aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_core.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@hp.com>2007-10-21 12:10:25 -0600
committerAlex Williamson <alex.williamson@hp.com>2007-10-21 12:10:25 -0600
commit55235cc5ea0f78b5d4c30d9e9645f394979b82bd (patch)
tree9e95e6b753b9a6d84356a5b2016cf0439e4b1a68 /tools/libxc/xc_core.c
parenta0447f82ed657de9a161cacd120057868ad15795 (diff)
parent88561d305804fe7a5d1a864a6e74854f57f80f2a (diff)
downloadxen-55235cc5ea0f78b5d4c30d9e9645f394979b82bd.tar.gz
xen-55235cc5ea0f78b5d4c30d9e9645f394979b82bd.tar.bz2
xen-55235cc5ea0f78b5d4c30d9e9645f394979b82bd.zip
merge with xen-unstable.hg
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r--tools/libxc/xc_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c
index defe8ca5dd..a939e95c75 100644
--- a/tools/libxc/xc_core.c
+++ b/tools/libxc/xc_core.c
@@ -628,7 +628,7 @@ xc_domain_dumpcore_via_callback(int xc_handle,
PERROR("could not get section headers for .xen_pages");
goto out;
}
- filesz = nr_pages * PAGE_SIZE;
+ filesz = (uint64_t)nr_pages * PAGE_SIZE;
sts = xc_core_shdr_set(shdr, strtab, XEN_DUMPCORE_SEC_PAGES, SHT_PROGBITS,
offset, filesz, PAGE_SIZE, PAGE_SIZE);
if ( sts != 0 )
@@ -644,7 +644,7 @@ xc_domain_dumpcore_via_callback(int xc_handle,
}
if ( !auto_translated_physmap )
{
- filesz = nr_pages * sizeof(p2m_array[0]);
+ filesz = (uint64_t)nr_pages * sizeof(p2m_array[0]);
sts = xc_core_shdr_set(shdr, strtab, XEN_DUMPCORE_SEC_P2M,
SHT_PROGBITS,
offset, filesz, __alignof__(p2m_array[0]),
@@ -652,7 +652,7 @@ xc_domain_dumpcore_via_callback(int xc_handle,
}
else
{
- filesz = nr_pages * sizeof(pfn_array[0]);
+ filesz = (uint64_t)nr_pages * sizeof(pfn_array[0]);
sts = xc_core_shdr_set(shdr, strtab, XEN_DUMPCORE_SEC_PFN,
SHT_PROGBITS,
offset, filesz, __alignof__(pfn_array[0]),