mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[boot] Split get_uefi_mappings and module creation
The `get_mappings()` function was getting too large, and some of its output is needed by more than just the building of the kernel map. Split it out into two. Tags: boot memory
This commit is contained in:
@@ -171,7 +171,9 @@ bootloader_main_uefi(uefi::handle image, uefi::system_table *st, console &con)
|
||||
loader::loaded_elf kernel_elf =
|
||||
loader::load(kernel->location, kernel->size, bs);
|
||||
|
||||
memory::get_mappings(bs);
|
||||
memory::efi_mem_map efi_map = memory::get_uefi_mappings(bs);
|
||||
memory::build_kernel_mem_map(efi_map, args, bs);
|
||||
|
||||
return kernel_elf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user