forked from Imagelibrary/rtems
bsps/arm: Move some MMU bit settings
The function arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache() must only set the MMU and cache enable flags. Configuration flags must be set elsewhere.
This commit is contained in:
@@ -100,8 +100,7 @@ arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache(
|
||||
}
|
||||
|
||||
/* Enable MMU and cache */
|
||||
ctrl |= ARM_CP15_CTRL_AFE | ARM_CP15_CTRL_S | ARM_CP15_CTRL_I |
|
||||
ARM_CP15_CTRL_C | ARM_CP15_CTRL_M | ARM_CP15_CTRL_XP;
|
||||
ctrl |= ARM_CP15_CTRL_I | ARM_CP15_CTRL_C | ARM_CP15_CTRL_M;
|
||||
|
||||
arm_cp15_set_control(ctrl);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ BSP_START_TEXT_SECTION void bsp_memory_management_initialize(void)
|
||||
{
|
||||
uint32_t ctrl = arm_cp15_get_control();
|
||||
|
||||
ctrl |= ARM_CP15_CTRL_AFE | ARM_CP15_CTRL_S | ARM_CP15_CTRL_XP;
|
||||
|
||||
arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache(
|
||||
ctrl,
|
||||
(uint32_t *) bsp_translation_table_base,
|
||||
|
||||
Reference in New Issue
Block a user