stivale(2): Adapt elf64_load() call to ELF API change

This commit is contained in:
mintsuki 2022-06-29 15:53:02 +02:00
parent 0eafcadd99
commit 2df54d4065
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ bool stivale_load(char *config, char *cmdline) {
if (!loaded_by_anchor) {
if (elf64_load(kernel, &entry_point, NULL, &slide,
STIVALE_MMAP_KERNEL_AND_MODULES, kaslr, false,
STIVALE_MMAP_KERNEL_AND_MODULES, kaslr,
NULL, NULL, false, NULL, NULL, NULL, NULL))
panic(true, "stivale: ELF64 load failure");

View File

@ -187,7 +187,7 @@ bool stivale2_load(char *config, char *cmdline) {
}
if (elf64_load(kernel, &entry_point, NULL, &slide,
STIVALE2_MMAP_KERNEL_AND_MODULES, kaslr, false,
STIVALE2_MMAP_KERNEL_AND_MODULES, kaslr,
want_pmrs ? &ranges : NULL,
want_pmrs ? &ranges_count : NULL,
want_fully_virtual, &physical_base, &virtual_base,