mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 02:45:33 +00:00
With the Cortex-M7 core on STM32H7, the imprecise bus abort triggered by the flash permission check might be propagated rather than ignored as we might have gone through the ignore_bus_fault(0) before the exception actually happens. We need barriers to avoid this case, add one in flash_physical_protect_now where I missed it in my previous patch. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=poppy BUG=b:75068419 TEST=On ZerbleBarn with MPU on and caches enabled, verify that flash_physical_protect_now() no longer triggers an imprecise abort in some builds. Change-Id: I1b5159e6606336a196b93cb1210cc28acd47c5a4 Reviewed-on: https://chromium-review.googlesource.com/1096765 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>