From 7ad725f27d531b586cce785725238d566e808483 Mon Sep 17 00:00:00 2001 From: Hesham AL-Matary Date: Mon, 14 Oct 2013 15:34:58 +0200 Subject: 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 --- c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libbsp/arm/raspberrypi/startup/mm_config_table.c') 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); -- cgit v1.2.3