From 201a55c7cbb7e7af81abc70069eea28314f84d93 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 17 Jan 2023 16:03:32 +0200 Subject: [PATCH] arm/addrenv_utils: Don't touch L1 mappings in addrenv_destroy() This is unnecessary, the address environment is getting wiped anyway, there is no need to remove the L1 references because they will get wiped when the page directory is changed --- arch/arm/src/armv7-a/arm_addrenv_utils.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/src/armv7-a/arm_addrenv_utils.c b/arch/arm/src/armv7-a/arm_addrenv_utils.c index 19f6b5cb68c..2433ab5f894 100644 --- a/arch/arm/src/armv7-a/arm_addrenv_utils.c +++ b/arch/arm/src/armv7-a/arm_addrenv_utils.c @@ -171,10 +171,6 @@ void arm_addrenv_destroy_region(uintptr_t **list, unsigned int listlen, for (i = 0; i < listlen; vaddr += SECTION_SIZE, i++) { - /* Unhook the L2 page table from the L1 page table */ - - mmu_l1_clrentry(vaddr); - /* Has this page table been allocated? */ paddr = (uintptr_t)list[i];