From a7c69a4b1f4450b16fc9d3a2d5a06e1b88f3f078 Mon Sep 17 00:00:00 2001 From: David Karoly Date: Tue, 11 Jan 2022 17:16:51 +0100 Subject: [PATCH] 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 Tested-by: Commit checker robot --- src/system/boot/platform/efi/arch/arm/arch_mmu.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/system/boot/platform/efi/arch/arm/arch_mmu.cpp b/src/system/boot/platform/efi/arch/arm/arch_mmu.cpp index 086a1819d4..5c69504258 100644 --- a/src/system/boot/platform/efi/arch/arm/arch_mmu.cpp +++ b/src/system/boot/platform/efi/arch/arm/arch_mmu.cpp @@ -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); - // 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, gKernelArgs.num_virtual_allocated_ranges);