Convert converting the call to bzimage_headroom(), as well as using
bi->mod[0]. It will be used externally by later changes.
No functional change.
Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
unsigned long initial_images_nrpages(nodeid_t node);
void discard_initial_images(void);
+struct boot_module;
+void *bootstrap_map_bm(const struct boot_module *bm);
void *bootstrap_map(const module_t *mod);
void bootstrap_unmap(void);
pfn_to_paddr(mod->mod_start) + mod->mod_end);
}
+void *__init bootstrap_map_bm(const struct boot_module *bm)
+{
+ return bootstrap_map(bm->mod);
+}
+
void __init bootstrap_unmap(void)
{
bootstrap_map_addr(0, 0);
mod[bi->nr_modules].mod_end = __2M_rwdata_end - _stext;
}
- modules_headroom = bzimage_headroom(bootstrap_map(mod), mod->mod_end);
+ modules_headroom =
+ bzimage_headroom(bootstrap_map_bm(&bi->mods[0]),
+ bi->mods[0].mod->mod_end);
bootstrap_unmap();
#ifndef highmem_start