diff options
author | Hesham AL-Matary <heshamelmatary@gmail.com> | 2013-10-14 15:34:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-27 19:06:05 +0100 |
commit | 7ad725f27d531b586cce785725238d566e808483 (patch) | |
tree | ea0715ecfeefca2b909d668f3317d5ba8854a276 /c/src/lib/libbsp/arm/raspberrypi/startup | |
parent | bsps/arm: Move some MMU bit settings (diff) | |
download | rtems-7ad725f27d531b586cce785725238d566e808483.tar.bz2 |
Modify raspberrypi mm_config_table to map GPIO and registers.
Changes include reverting back to setting all page-table section entries
as invalid and modify mm_config_table to apply the correct memory attributes
for raspbberypi memory sections at startup. The newly added entry at mm_config_table
maps raspberrypi GPIO and other registers found at raspberrypi.h
Diffstat (limited to 'c/src/lib/libbsp/arm/raspberrypi/startup')
-rw-r--r-- | c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c b/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c index 5436a76870..607394dae0 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c @@ -42,7 +42,7 @@ bsp_mm_config_table[] = { }, { .begin = (uint32_t) bsp_section_text_begin, .end = (uint32_t) bsp_section_text_end, - .flags = ARMV7_MMU_CODE_CACHED + .flags = ARMV7_MMU_READ_WRITE }, { .begin = (uint32_t) bsp_section_rodata_begin, .end = (uint32_t) bsp_section_rodata_end, @@ -63,8 +63,12 @@ bsp_mm_config_table[] = { .begin = (uint32_t) bsp_section_stack_begin, .end = (uint32_t) bsp_section_stack_end, .flags = MMU_DATA_READ_WRITE + }, { + .begin = 0x20000000, + .end = 0x21000000, + .flags = ARMV7_MMU_DEVICE } }; BSP_START_DATA_SECTION const size_t bsp_mm_config_table_size = -RTEMS_ARRAY_SIZE(&bsp_mm_config_table); +RTEMS_ARRAY_SIZE(bsp_mm_config_table); |