summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-08-09 17:05:27 +1000
committerChris Johns <chrisj@rtems.org>2016-08-15 09:18:27 +1000
commit01aa1ba34a1696736ed5200ffa1d4be9963d99b3 (patch)
tree327db07fd685f82683d98ed46b16da4456d615dd
parent55faa447686f632bf1b98827cdec37a44bd69da2 (diff)
downloadrtems-01aa1ba34a1696736ed5200ffa1d4be9963d99b3.tar.bz2
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.
-rw-r--r--c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h4
1 files changed, 4 insertions, 0 deletions
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 01fdbb3463..a749f7dc98 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