@@ -641,7 +641,7 @@ int __init dom0_construct_pv(struct domain *d,
if ( assign_pages(mfn_to_page(_mfn(mfn++)), 1, d, 0) )
BUG();
}
- initrd->size = initrd->early_mod->mod_end = 0;
+ initrd->size = 0;
iommu_memory_setup(d, "initrd", mfn_to_page(_mfn(initrd_mfn)),
PFN_UP(initrd_len), &flush_flags);
@@ -353,12 +353,10 @@ void __init discard_initial_images(void)
for ( i = 0; i < boot_info->nr_mods; ++i )
{
- uint64_t start =
- (uint64_t)boot_info->mods[i].early_mod->mod_start << PAGE_SHIFT;
+ uint64_t start = boot_info->mods[i].start;
init_domheap_pages(start,
- start +
- PAGE_ALIGN(boot_info->mods[i].early_mod->mod_end));
+ start + PAGE_ALIGN(boot_info->mods[i].size));
}
boot_info->nr_mods = 0;
This eliminates usage of early_mod by discard_initial_images Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com> --- xen/arch/x86/pv/dom0_build.c | 2 +- xen/arch/x86/setup.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-)