soc: arm: stm32h7x mapping system memory region
System memory declared by the MPU as 'Strongly Ordered' with region attributes which will inhibit the speculative fetch, preventing the Flash RDSERR. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
e3f5e1f496
commit
66caf58265
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,15 @@ static const struct arm_mpu_region mpu_regions[] = {
|
|||
REGION_FLASH_ATTR(REGION_FLASH_SIZE)),
|
||||
MPU_REGION_ENTRY("SRAM", CONFIG_SRAM_BASE_ADDRESS,
|
||||
REGION_RAM_ATTR(REGION_SRAM_SIZE)),
|
||||
/*
|
||||
* System memory attributes inhibit the speculative fetch,
|
||||
* preventing the RDSERR Flash error
|
||||
*/
|
||||
MPU_REGION_ENTRY("SYSTEM", 0x1FF00000,
|
||||
{ (STRONGLY_ORDERED_SHAREABLE |
|
||||
REGION_512K |
|
||||
MPU_RASR_XN_Msk | P_RW_U_NA_Msk) }),
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(mac), okay)
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sram3), okay)
|
||||
MPU_REGION_ENTRY("SRAM3_ETH_BUF",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue