ARM: stm32: Fix ECDSA authentication with Dcache enabled
authorMarek Vasut <marex@denx.de>
Thu, 12 Jan 2023 17:58:39 +0000 (18:58 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 13 Jan 2023 12:46:57 +0000 (13:46 +0100)
commitbbafbc044dcab06eccba0dc6a7235a0c6e782484
tree988050a959ce2565e91bbcdf3f8bed2f426137bf
parentd3a87e32dd0841463c2d5ea0778aecf0fc03a93a
ARM: stm32: Fix ECDSA authentication with Dcache enabled

In case Dcache is enabled while the ECDSA authentication function is
called via BootROM ROM API, the MMU tables are set up and the BootROM
region is not marked as executable, so an attempt to run code from it
results in a hang. Mark the BootROM region as executable as suggested
by Patrick to prevent the hang.

Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-stm32mp/ecdsa_romapi.c