Skip to content

Commit

Permalink
am64xr5: change DDR MPU settings to Normal, Cacheable
Browse files Browse the repository at this point in the history
The default MPU memory map of the am64xr5 runtime marks the DDR memory as
non-sharable device memory. However device memory is designed for
memory-mapped peripherals, so doesn't allow execution even if we explicitly
mark it as execute enabled.

To be more customer friendly, change this memory region to be cacheable
normal memory (which really it is).

Issue: eng/toolchain/bb-runtimes#53
(cherry picked from commit 02e7a90)
  • Loading branch information
burratoo committed May 28, 2024
1 parent b85b1c3 commit 0a3bf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/s-boapar__am64xr5.ads
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ package System.Board_Parameters is
Access_Control =>
(XN => MD.Execute_All,
AP => MD.Privileged_RW_User_RW,
TEX_S_C_B => MD.Non_Shareable_Device))
TEX_S_C_B => MD.Outer_Inner_WB_WA_NS))
);
end System.Board_Parameters;

0 comments on commit 0a3bf42

Please sign in to comment.