mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
This PR configures the BL808 and SG2000 MMU (inside T-Head C906) to cache the the Kernel Text, Data and Heap. We set the MMU Flags (Shareable, Bufferable and Cacheable) as explained in this article: https://lupyuen.github.io/articles/plic3#appendix-mmu-caching-for-t-head-c906 This PR fixes the Slow Memory Access for NuttX Kernel in BL808 and SG2000: https://github.com/apache/nuttx/issues/12696 In the next PR, we will fix the Slow Memory Access for NuttX Apps, by caching the User Text and Data. arch/risc-v/src/bl808/bl808_mm_init.c: Added MMU Flags (Shareable, Bufferable and Cacheable) for BL808 Kernel Text, Data and Heap arch/risc-v/src/sg2000/sg2000_mm_init.c: Added MMU Flags (Shareable, Bufferable and Cacheable) for SG2000 Kernel Text, Data and Heap |
||
|---|---|---|
| .. | ||
| hardware | ||
| chip.h | ||
| Kconfig | ||
| Make.defs | ||
| sg2000_allocateheap.c | ||
| sg2000_head.S | ||
| sg2000_irq.c | ||
| sg2000_irq_dispatch.c | ||
| sg2000_memorymap.h | ||
| sg2000_mm_init.c | ||
| sg2000_mm_init.h | ||
| sg2000_pgalloc.c | ||
| sg2000_start.c | ||
| sg2000_timerisr.c | ||