Changeset 09d0c96b in rtems


Ignore:
Timestamp:
Oct 27, 2013, 5:58:42 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
7ad725f2
Parents:
0f874ee
Message:

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.

Location:
c/src/lib/libbsp/arm/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h

    r0f874ee r09d0c96b  
    101101
    102102  /* Enable MMU and cache */
    103   ctrl |= ARM_CP15_CTRL_AFE | ARM_CP15_CTRL_S | ARM_CP15_CTRL_I |
    104           ARM_CP15_CTRL_C | ARM_CP15_CTRL_M  | ARM_CP15_CTRL_XP;
     103  ctrl |= ARM_CP15_CTRL_I | ARM_CP15_CTRL_C | ARM_CP15_CTRL_M;
    105104
    106105  arm_cp15_set_control(ctrl);
  • c/src/lib/libbsp/arm/shared/mminit.c

    r0f874ee r09d0c96b  
    1515  uint32_t ctrl = arm_cp15_get_control();
    1616
     17  ctrl |= ARM_CP15_CTRL_AFE | ARM_CP15_CTRL_S | ARM_CP15_CTRL_XP;
     18
    1719  arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache(
    1820    ctrl,
Note: See TracChangeset for help on using the changeset viewer.