stivale2: Report correct kernel/modules memory map type value

This commit is contained in:
mintsuki 2021-04-01 20:05:27 +02:00
parent 59dd147bf4
commit dce8d312ea
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);