commit | be49df628f41344eed3a6acfbea228b64fcfead0 | [log] [tgz] |
---|---|---|
author | Aurelien Jarno <aurelien@aurel32.net> | Thu May 13 15:34:00 2021 +0200 |
committer | Kumar Gala <kumar.gala@gmail.com> | Tue May 18 11:39:26 2021 -0500 |
tree | cf9d22a7ac0018812b6cb24cef2cc6573fb54c23 | |
parent | 1a583e44baafc41a63d0bc9eeecfde5699a4e019 [diff] |
arch: arm: cortex_m: z_arm_mpu_init: fix D-Cache invalidation In case CONFIG_NOCACHE_MEMORY=y, the D-Cache need to be clean and invalidated before enabling the MPU to make sure no data from a __nocache__ region is present in the D-Cache. If the D-Cache is disabled, SCB_CleanInvalidateDCache() shall not be used as it might contains random data for random addresses, and this might just create a bus fault. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>