diff options
| author | Anshul Dalal <[email protected]> | 2025-10-17 18:45:29 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-22 12:05:52 -0600 |
| commit | 856480eef0a25dde339cce6d1889efdc836c6be8 (patch) | |
| tree | a0fa72da2d9e2624343b07d5a12ebd00a02e92cf /include/spl.h | |
| parent | f1c694b8fddece279cdd103ae4009bf25345d8e4 (diff) | |
arm: armv8: mmu: add mmu_unmap_reserved_mem
For armv8, U-Boot uses a static map defined as 'mem_map' for configuring
the MMU's page tables, done by mmu_setup.
Though this works well for simpler platforms, it makes creating runtime
carveouts by modifying the static array at runtime exceedingly complex
like in mach-snapdragon/board.c.
Creation of such carveouts are much better handled by APIs such as
mmu_change_region_attr once the page tables are configured. Usually such
carveouts are configured via the device-tree's reserved-memory node
which provides the address and size for the carveout.
Therefore this patch adds mmu_unmap_reserved_mem which acts as a wrapper
over mmu_change_region_attr, helping unmap a reserved-memory region.
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Anshul Dalal <[email protected]>
Tested-by: Wadim Egorov <[email protected]>
Diffstat (limited to 'include/spl.h')
0 files changed, 0 insertions, 0 deletions
