[PATCH] mmu: explicitly map executable non-SDRAM regions with MAP_CODE
Sascha Hauer
s.hauer at pengutronix.de
Fri Jun 20 05:46:08 PDT 2025
On Wed, 18 Jun 2025 14:36:42 +0200, Ahmad Fatoum wrote:
> So far we have been setting eXecute Never on MAP_UNCACHED regions and
> left it out for the default MAP_CACHED region.
>
> We have at least three places, which depend on this to remap non-SDRAM
> regions executable, so ROM code or newly uploaded code can be run.
>
> Switch them over to use a new MAP_CODE mapping type. For now, this is
> equivalent to MAP_CACHED, but with the addition of W^X support in
> barebox, this will be required to avoid a prefetch abort when MMU
> attributes are used.
>
> [...]
Applied, thanks!
[1/1] mmu: explicitly map executable non-SDRAM regions with MAP_CODE
https://git.pengutronix.de/cgit/barebox/commit/?id=225fda833a82 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list