stivale1&2: Allocate kernel with the right memmap type for 32-bit

This commit is contained in:
mintsuki 2021-12-22 20:27:51 +01:00
parent b332e85876
commit e9383335b4
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ bool stivale_load(char *config, char *cmdline) {
}
case 32: {
if (!loaded_by_anchor) {
if (elf32_load(kernel, (uint32_t *)&entry_point, NULL, 10))
if (elf32_load(kernel, (uint32_t *)&entry_point, NULL, STIVALE_MMAP_KERNEL_AND_MODULES))
panic(true, "stivale: ELF32 load failure");
ret = elf32_load_section(kernel, &stivale_hdr, ".stivalehdr",

View File

@ -201,7 +201,7 @@ bool stivale2_load(char *config, char *cmdline) {
}
case 32: {
if (!loaded_by_anchor) {
if (elf32_load(kernel, (uint32_t *)&entry_point, NULL, 10))
if (elf32_load(kernel, (uint32_t *)&entry_point, NULL, STIVALE2_MMAP_KERNEL_AND_MODULES))
panic(true, "stivale2: ELF32 load failure");
ret = elf32_load_section(kernel, &stivale2_hdr, ".stivale2hdr",