Lines Matching refs:module_image
176 void *kernel_image, *module_image; variable
201 if (module_image) in load_initrd()
202 free(module_image); in load_initrd()
203 module_image = NULL; in load_initrd()
206 load_file (initrd, &module_image, &module_size); in load_initrd()
225 if (module_image && !multiboot_next_module_header) { in load_module()
227 free(module_image); in load_module()
230 module_image = NULL; in load_module()
232 if (!module_image) in load_module()
237 new_module_image = realloc(module_image, in load_module()
238 (multiboot_next_module - module_image) + rounded_new_module_size + PAGE_SIZE); in load_module()
241 multiboot_next_module += new_module_image - module_image; in load_module()
242 …boot_next_module_header = (void*) multiboot_next_module_header + (new_module_image - module_image); in load_module()
243 module_image = new_module_image; in load_module()
245 if ((void*) (multiboot_next_module_header+1) - module_image > PAGE_SIZE) { in load_module()
253 multiboot_next_module_header->mod_start = multiboot_next_module - module_image; in load_module()
259 multiboot_next_module_header->cmdline = multiboot_next_module - module_image; in load_module()
278 module_size = multiboot_next_module - module_image; in pv_boot()
282 kexec(kernel_image, kernel_size, module_image, module_size, kernel_arg, flags); in pv_boot()