mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
misc_helpers: fix zero_normalmem() for BL2_AT_EL3
The assertion in zero_normalmem() fails for BL2_AT_EL3. This mode is executed in EL3, so it should check sctlr_el3 instead of sctlr_el1. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
e45820dc54
commit
79c7e72829
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ func zeromem_dczva
|
|||
* Check for M bit (MMU enabled) of the current SCTLR_EL(1|3)
|
||||
* register value and panic if the MMU is disabled.
|
||||
*/
|
||||
#if defined(IMAGE_BL1) || defined(IMAGE_BL31)
|
||||
#if defined(IMAGE_BL1) || defined(IMAGE_BL31) || (defined(IMAGE_BL2) && BL2_AT_EL3)
|
||||
mrs tmp1, sctlr_el3
|
||||
#else
|
||||
mrs tmp1, sctlr_el1
|
||||
|
|
Loading…
Add table
Reference in a new issue