boot/efi/arm: remove identity mapping of initial page tables

Change-Id: I37cb756c32e05a585ff224c1e48d1a40c83e5e2e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4858
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
David Karoly 2022-01-11 17:16:51 +01:00 committed by Alex von Gluck IV
parent 9103470bd3
commit a7c69a4b1f

View File

@ -333,11 +333,6 @@ arch_mmu_generate_post_efi_page_tables(size_t memory_map_size,
map_range_to_new_area(gKernelArgs.arch_args.uart.regs, ARM_MMU_L2_FLAG_B); map_range_to_new_area(gKernelArgs.arch_args.uart.regs, ARM_MMU_L2_FLAG_B);
// identity mapping for page table area
uint32_t page_table_area = (uint32_t)sFirstPageTable;
map_range(page_table_area, page_table_area, PAGE_TABLE_AREA_SIZE,
ARM_MMU_L2_FLAG_B | ARM_MMU_L2_FLAG_C | ARM_MMU_L2_FLAG_AP_RW);
sort_address_ranges(gKernelArgs.virtual_allocated_range, sort_address_ranges(gKernelArgs.virtual_allocated_range,
gKernelArgs.num_virtual_allocated_ranges); gKernelArgs.num_virtual_allocated_ranges);