[PATCH v2 1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled
Sascha Hauer
s.hauer at pengutronix.de
Fri Aug 28 07:24:36 PDT 2026
On Tue, 25 Aug 2026 10:13:15 +0200, Ahmad Fatoum wrote:
> barebox built as EFI payload on ARM invalidates the data caches inside
> barebox_arm_entry(), which may lead to memory corruption.
>
> Generally, calling arm_early_mmu_cache_invalidate() while the caches are
> enabled is a bad idea, so add a function that protects against that and
> use it in common code.
>
> [...]
Applied, thanks!
[1/3] ARM: cpu: suppress arm_early_mmu_cache_invalidate if dcache enabled
https://git.pengutronix.de/cgit/barebox/commit/?id=72faea821232 (link may not be stable)
[2/3] ARM: v7r: factor out armv7r_cache_enable
https://git.pengutronix.de/cgit/barebox/commit/?id=14eafd21e89b (link may not be stable)
[3/3] ARM: always call cache_invalidate_stale before enabling D-Cache
https://git.pengutronix.de/cgit/barebox/commit/?id=fcec14feed91 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list