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

Chris Johns chrisj at rtems.org
Tue Aug 9 07:39:00 UTC 2016


This lets the table be changed at runtime for dynamic loading and
debugger support.
---
 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
-- 
2.4.6



More information about the devel mailing list