[rtems commit] libbsp/arm: Add the TTB table to the default MMU set up as read/write.

Chris Johns chrisj at rtems.org
Sun Aug 14 23:22:59 UTC 2016


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

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Aug  9 17:05:27 2016 +1000

libbsp/arm: Add the TTB table to the default MMU set up as read/write.

This lets the table be changed at runtime for dynamic loading and
debugger support.

Closes #2775.

---

 c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h b/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h
index 01fdbb3..a749f7d 100644
--- a/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h
+++ b/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h
@@ -88,6 +88,10 @@ typedef struct {
     .begin = (uint32_t) bsp_section_nocachenoload_begin, \
     .end = (uint32_t) bsp_section_nocachenoload_end, \
     .flags = ARMV7_MMU_DEVICE \
+  }, { \
+    .begin = (uint32_t) bsp_translation_table_base, \
+    .end = (uint32_t) bsp_translation_table_end, \
+    .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED \
   }
 
 BSP_START_DATA_SECTION extern const arm_cp15_start_section_config




More information about the vc mailing list