kernel: some boottime sanitychecks
. Check if we have the right number of boot modules . Check if the ELF parsing of VM actually succeeded Both these are root causes of less-than-obvious other errors/asserts a little further down the line; uncovered while experimenting with booting by iPXE, specifically (a) iPXE having a 8-multiboot-modules limit and (b) trying to boot a gzipped VM.
This commit is contained in:
@@ -419,7 +419,8 @@ void arch_boot_proc(struct boot_image *ip, struct proc *rp)
|
||||
execi.clearproc = NULL;
|
||||
|
||||
/* parse VM ELF binary and alloc/map it into bootstrap pagetable */
|
||||
libexec_load_elf(&execi);
|
||||
if(libexec_load_elf(&execi) != OK)
|
||||
panic("VM loading failed");
|
||||
|
||||
/* Initialize the server stack pointer. Take it down three words
|
||||
* to give startup code something to use as "argc", "argv" and "envp".
|
||||
|
||||
Reference in New Issue
Block a user