Skip to content

Commit 6866bbb

Browse files
tswaehnhenrikbrixandersen
authored andcommitted
soc: atmel: sam: Add invalidate d-cache at z_arm_platform_init
Before that fix, the SOC was unable to boot properly. Starting turned directly into z_arm_usage_fault(). Fixes #73485 Signed-off-by: Sven Ginka <[email protected]> (cherry picked from commit c3d7b1c)
1 parent fee8920 commit 6866bbb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

soc/arm/atmel_sam/same70/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ void z_arm_platform_init(void)
122122
* sys_cache*-functions can enable them, if requested by the
123123
* configuration.
124124
*/
125+
SCB_InvalidateDCache();
125126
SCB_DisableDCache();
126127

127128
/*

soc/arm/atmel_sam/samv71/soc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ void z_arm_platform_init(void)
119119
* sys_cache*-functions can enable them, if requested by the
120120
* configuration.
121121
*/
122+
SCB_InvalidateDCache();
122123
SCB_DisableDCache();
123124

124125
/*

0 commit comments

Comments
 (0)