Changeset 65e59cc in rtems for bsps/arm


Ignore:
Timestamp:
Apr 24, 2018, 4:37:06 AM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0180acf2
Parents:
c99e4f4e
git-author:
Sebastian Huber <sebastian.huber@…> (04/24/18 04:37:06)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/24/18 06:04:52)
Message:

bsps/arm: Move bsp_memory_management_initialize()

This function is only used by the raspberrypi BSP.

This patch is a part of the BSP source reorganization.

Update #3285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/raspberrypi/start/bspstarthooks.c

    rc99e4f4e r65e59cc  
    2626#include <bsp/start.h>
    2727#include <bsp/raspberrypi.h>
    28 #include <bsp/mm.h>
    2928#include <libcpu/arm-cp15.h>
    3029#include <bsp.h>
     30#include <bsp/linker-symbols.h>
     31#include <bsp/arm-cp15-start.h>
    3132
    3233#ifdef RTEMS_SMP
     
    9899}
    99100
     101BSP_START_TEXT_SECTION static void bsp_memory_management_initialize(void)
     102{
     103  uint32_t ctrl = arm_cp15_get_control();
     104
     105  ctrl |= ARM_CP15_CTRL_AFE | ARM_CP15_CTRL_S | ARM_CP15_CTRL_XP;
     106
     107  arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache(
     108    ctrl,
     109    (uint32_t *) bsp_translation_table_base,
     110    ARM_MMU_DEFAULT_CLIENT_DOMAIN,
     111    &arm_cp15_start_mmu_config_table[0],
     112    arm_cp15_start_mmu_config_table_size
     113  );
     114}
     115
    100116void BSP_START_TEXT_SECTION bsp_start_hook_1(void)
    101117{
Note: See TracChangeset for help on using the changeset viewer.