arm64: mmu_change_region_attr() add an option not to break PTEs
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 20 Feb 2025 13:54:41 +0000 (15:54 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 14 Mar 2025 11:37:54 +0000 (13:37 +0200)
commitff0a979fc3591dcfb28585ae97ed4078a3ed5ef4
tree5196bd7651833c62c70c2be8b2e3bedb76f919d0
parent1c7d0c411c033f7158dccc34c795951b667dd591
arm64: mmu_change_region_attr() add an option not to break PTEs

The ARM ARM (Rev L.a) on section 8.17.1 describes the cases where
break-before-make is required when changing live page tables.
Since we can use a function to tweak block and page permissions,
where BBM is not required split the existing mmu_change_region_attr()
into two functions and create one that doesn't require BBM. Subsequent
patches will use the new function to map the U-Boot binary with proper
page permissions.
While at it add function descriptions in their header files.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/arm/cpu/armv8/cache_v8.c
arch/arm/include/asm/system.h