Skip to content

Commit

Permalink
soc: atmel: sam: Add invalidate d-cache at z_arm_platform_init
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
tswaehn authored and github-actions[bot] committed Jun 10, 2024
1 parent 8cd7337 commit 53532b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions soc/arm/atmel_sam/same70/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ void z_arm_platform_init(void)
* sys_cache*-functions can enable them, if requested by the
* configuration.
*/
SCB_InvalidateDCache();
SCB_DisableDCache();

/*
Expand Down
1 change: 1 addition & 0 deletions soc/arm/atmel_sam/samv71/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ void z_arm_platform_init(void)
* sys_cache*-functions can enable them, if requested by the
* configuration.
*/
SCB_InvalidateDCache();
SCB_DisableDCache();

/*
Expand Down

0 comments on commit 53532b2

Please sign in to comment.