stivale2: Report correct kernel/modules memory map type value
This commit is contained in:
parent
59dd147bf4
commit
dce8d312ea
|
@ -67,7 +67,7 @@ void stivale_load(char *config, char *cmdline) {
|
|||
level5pg = true;
|
||||
}
|
||||
|
||||
if (elf64_load(kernel, &entry_point, &slide, 10))
|
||||
if (elf64_load(kernel, &entry_point, &slide, STIVALE_MMAP_KERNEL_AND_MODULES))
|
||||
panic("stivale: ELF64 load failure");
|
||||
|
||||
ret = elf64_load_section(kernel, &stivale_hdr, ".stivalehdr", sizeof(struct stivale_header), slide);
|
||||
|
|
|
@ -85,7 +85,7 @@ void stivale2_load(char *config, char *cmdline, bool pxe, void *efi_system_table
|
|||
level5pg = true;
|
||||
}
|
||||
|
||||
if (elf64_load(kernel, &entry_point, &slide, 10))
|
||||
if (elf64_load(kernel, &entry_point, &slide, STIVALE2_MMAP_KERNEL_AND_MODULES))
|
||||
panic("stivale2: ELF64 load failure");
|
||||
|
||||
ret = elf64_load_section(kernel, &stivale2_hdr, ".stivale2hdr", sizeof(struct stivale2_header), slide);
|
||||
|
|
Loading…
Reference in New Issue