forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -109,7 +109,6 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/raspberrypi/start/bspstartho
|
||||
|
||||
# LIBMM
|
||||
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/raspberrypi/start/mm_config_table.c
|
||||
librtemsbsp_a_SOURCES += ../shared/mminit.c
|
||||
|
||||
###############################################################################
|
||||
# Special Rules #
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Hesham AL-Matary.
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.org/license/LICENSE.
|
||||
*/
|
||||
|
||||
#define ARM_CP15_TEXT_SECTION BSP_START_TEXT_SECTION
|
||||
|
||||
#include <bsp/start.h>
|
||||
#include <bsp/arm-cp15-start.h>
|
||||
#include <bsp/linker-symbols.h>
|
||||
#include <bsp/mm.h>
|
||||
|
||||
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,
|
||||
ARM_MMU_DEFAULT_CLIENT_DOMAIN,
|
||||
&arm_cp15_start_mmu_config_table[0],
|
||||
arm_cp15_start_mmu_config_table_size
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user