fix(VMM): use correct APTable encoding for table descriptors
fix(VMM): use correct APTable encoding for table descriptors fix(vmm): changed flags to match ARMv8
This commit is contained in:
@@ -139,8 +139,8 @@ static efi_status_t load_elf_segments(efi_physical_address_t kernel_addr, efi_fi
|
||||
if (phdr->p_type != PT_LOAD) continue;
|
||||
|
||||
uintn_t pages = (phdr->p_memsz + 0xFFF) / 0x1000;
|
||||
|
||||
efi_physical_address_t segment_addr = phdr->p_paddr;
|
||||
|
||||
efi_physical_address_t segment_addr = phdr->p_paddr;
|
||||
|
||||
efi_status_t status = gBS->AllocatePages(AllocateAddress, EfiLoaderData, pages, &segment_addr);
|
||||
if (EFI_ERROR(status)) {
|
||||
@@ -279,4 +279,4 @@ efi_status_t bootloader_main(void) {
|
||||
kernel_main(boot_info);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user