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:
@@ -30,4 +30,4 @@ set_target_properties(BOOTAA64 PROPERTIES
|
||||
SUFFIX ".EFI"
|
||||
OUTPUT_NAME "BOOTAA64"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/efi_bin"
|
||||
)
|
||||
)
|
||||
|
||||
@@ -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