File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2017 Linaro Limited.
3
- * Copyright 2025 NXP
4
3
*
5
4
* SPDX-License-Identifier: Apache-2.0
6
5
*/
11
10
#include <zephyr/arch/arm/cortex_m/arm_mpu_mem_cfg.h>
12
11
13
12
static const struct arm_mpu_region mpu_regions [] = {
14
-
15
- #if defined(CONFIG_CPU_CORTEX_M7 ) && defined (CONFIG_CPU_HAS_ARM_MPU ) && \
16
- defined (CONFIG_CPU_HAS_DCACHE )
17
- /* Erratum 1013783-B (SDEN-1068427): use first region to prevent speculative access
18
- * in entire memory space
19
- */
20
- MPU_REGION_ENTRY ("BACKGROUND" ,
21
- 0 ,
22
- {REGION_4G | MPU_RASR_XN_Msk | P_NA_U_NA_Msk }),
23
- #endif
24
-
25
13
#ifdef CONFIG_XIP
14
+ /* Region 0 */
26
15
MPU_REGION_ENTRY ("FLASH_0" ,
27
16
CONFIG_FLASH_BASE_ADDRESS ,
28
17
#if defined(CONFIG_ARMV8_M_BASELINE ) || defined (CONFIG_ARMV8_M_MAINLINE )
@@ -33,6 +22,7 @@ static const struct arm_mpu_region mpu_regions[] = {
33
22
#endif
34
23
#endif
35
24
25
+ /* Region 1 */
36
26
MPU_REGION_ENTRY ("SRAM_0" ,
37
27
CONFIG_SRAM_BASE_ADDRESS ,
38
28
#if defined(CONFIG_ARMV8_M_BASELINE ) || defined (CONFIG_ARMV8_M_MAINLINE )
You can’t perform that action at this time.
0 commit comments