kernel: Add a "nocache" read-write memory section
Add a "nocache" read-write memory section that is configured to not be cached. This memory section can be used to perform DMA transfers when cache coherence issues are not optimal or can not be solved using cache maintenance operations. This is currently only supported on ARM Cortex M7 with MPU. Fixes #2927 Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
2c363bddfe
commit
6fd1691b94
9 changed files with 98 additions and 6 deletions
|
@ -56,7 +56,10 @@
|
|||
#define _CCM_DATA_SECTION_NAME .ccm_data
|
||||
#define _CCM_BSS_SECTION_NAME .ccm_bss
|
||||
#define _CCM_NOINIT_SECTION_NAME .ccm_noinit
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NOCACHE_MEMORY
|
||||
#define _NOCACHE_SECTION_NAME nocache
|
||||
#endif
|
||||
|
||||
#include <linker/section_tags.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue