5
Last change
on this file since 2d0bc83 was
9eb1994f,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/01/14 at 13:17:40
|
bsps/arm: Rename bsp_mm_config_table
Rename bsp_mm_config_table to arm_cp15_start_mmu_config_table and
rename bsp_mm_config_table_size to arm_cp15_start_mmu_config_table_size
to be in line with the other names in <bsp/arm-cp15-start.h>.
|
-
Property mode set to
100644
|
File size:
794 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2013 Hesham AL-Matary. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #define ARM_CP15_TEXT_SECTION BSP_START_TEXT_SECTION |
---|
10 | |
---|
11 | #include <bsp/start.h> |
---|
12 | #include <bsp/arm-cp15-start.h> |
---|
13 | #include <bsp/linker-symbols.h> |
---|
14 | #include <bsp/mm.h> |
---|
15 | |
---|
16 | BSP_START_TEXT_SECTION void bsp_memory_management_initialize(void) |
---|
17 | { |
---|
18 | uint32_t ctrl = arm_cp15_get_control(); |
---|
19 | |
---|
20 | ctrl |= ARM_CP15_CTRL_AFE | ARM_CP15_CTRL_S | ARM_CP15_CTRL_XP; |
---|
21 | |
---|
22 | arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache( |
---|
23 | ctrl, |
---|
24 | (uint32_t *) bsp_translation_table_base, |
---|
25 | ARM_MMU_DEFAULT_CLIENT_DOMAIN, |
---|
26 | &arm_cp15_start_mmu_config_table[0], |
---|
27 | arm_cp15_start_mmu_config_table_size |
---|
28 | ); |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.