[rtems commit] Modify raspberrypi mm_config_table to map GPIO and registers .

Sebastian Huber sebh at rtems.org
Sun Oct 27 18:00:08 UTC 2013


Module:    rtems
Branch:    master
Commit:    7ad725f27d531b586cce785725238d566e808483
Changeset: http://git.rtems.org/rtems/commit/?id=7ad725f27d531b586cce785725238d566e808483

Author:    Hesham AL-Matary <heshamelmatary at gmail.com>
Date:      Mon Oct 14 15:34:58 2013 +0200

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

---

 .../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 5436a76..607394d 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);




More information about the vc mailing list