[PATCH] aarch64: Memory map the noinit section

Kinsey Moore kinsey.moore at oarcorp.com
Fri Jul 15 20:45:21 UTC 2022


This section was added recently and must be mapped to be accessed
without generating an exception.
---
 bsps/aarch64/include/bsp/aarch64-mmu.h    | 4 ++++
 bsps/aarch64/include/bsp/linker-symbols.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/bsps/aarch64/include/bsp/aarch64-mmu.h b/bsps/aarch64/include/bsp/aarch64-mmu.h
index bca7e0ce8d..35fc79d73a 100644
--- a/bsps/aarch64/include/bsp/aarch64-mmu.h
+++ b/bsps/aarch64/include/bsp/aarch64-mmu.h
@@ -91,6 +91,10 @@ typedef struct {
     .begin = (uintptr_t) bsp_section_rtemsstack_begin, \
     .end = (uintptr_t) bsp_section_rtemsstack_end, \
     .flags = AARCH64_MMU_DATA_RW_CACHED \
+  }, { \
+    .begin = (uintptr_t) bsp_section_noinit_begin, \
+    .end = (uintptr_t) bsp_section_noinit_end, \
+    .flags = AARCH64_MMU_DATA_RW_CACHED \
   }, { \
     .begin = (uintptr_t) bsp_section_work_begin, \
     .end = (uintptr_t) bsp_section_work_end, \
diff --git a/bsps/aarch64/include/bsp/linker-symbols.h b/bsps/aarch64/include/bsp/linker-symbols.h
index 38c655ba97..222c217abb 100644
--- a/bsps/aarch64/include/bsp/linker-symbols.h
+++ b/bsps/aarch64/include/bsp/linker-symbols.h
@@ -108,6 +108,10 @@ LINKER_SYMBOL(bsp_section_rtemsstack_begin)
 LINKER_SYMBOL(bsp_section_rtemsstack_end)
 LINKER_SYMBOL(bsp_section_rtemsstack_size)
 
+LINKER_SYMBOL(bsp_section_noinit_begin)
+LINKER_SYMBOL(bsp_section_noinit_end)
+LINKER_SYMBOL(bsp_section_noinit_size)
+
 LINKER_SYMBOL(bsp_section_work_begin)
 LINKER_SYMBOL(bsp_section_work_end)
 LINKER_SYMBOL(bsp_section_work_size)
-- 
2.30.2



More information about the devel mailing list