diff options
author | Jan Sommer <jan.sommer@dlr.de> | 2020-11-24 09:40:38 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-11 06:54:14 +0100 |
commit | 1a7afb55a33f9f87ba508fc45f19761ad2427e16 (patch) | |
tree | 2773eca6d7c019159499f9bee77df726377b8a89 /bsps | |
parent | cpukit/aarch64: Add explanation of exception flow (diff) | |
download | rtems-1a7afb55a33f9f87ba508fc45f19761ad2427e16.tar.bz2 |
bsps/arm: Fix MMU small pages support
- For small tables only round to the next 4kiB instead of 1MiB
Close #4184.
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/arm/include/bsp/arm-cp15-start.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/arm/include/bsp/arm-cp15-start.h b/bsps/arm/include/bsp/arm-cp15-start.h index c4686fbbd4..86c4f8afcb 100644 --- a/bsps/arm/include/bsp/arm-cp15-start.h +++ b/bsps/arm/include/bsp/arm-cp15-start.h @@ -119,7 +119,7 @@ arm_cp15_start_set_translation_table_entries( pt = &ttb[ARM_MMU_TRANSLATION_TABLE_ENTRY_COUNT]; i = ARM_MMU_SMALL_PAGE_GET_INDEX(config->begin); - iend = ARM_MMU_SMALL_PAGE_GET_INDEX(ARM_MMU_SECT_MVA_ALIGN_UP(config->end)); + iend = ARM_MMU_SMALL_PAGE_GET_INDEX(ARM_MMU_SMALL_PAGE_MVA_ALIGN_UP(config->end)); index_mask = (1U << (32 - ARM_MMU_SMALL_PAGE_BASE_SHIFT)) - 1U; flags = ARM_MMU_SECT_FLAGS_TO_SMALL_PAGE(config->flags); |