misc_helpers: fix zero_normalmem() for BL2_AT_EL3
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Feb 2018 04:17:29 +0000 (13:17 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 1 Feb 2018 04:17:29 +0000 (13:17 +0900)
commit79c7e72829115117d0cdca50c0e1a789623d8ee9
tree9c490dfc2961d00ab5e6e4377363e58a97892664
parente45820dc54ed5df7f22fbeeef9739ac67618ebd6
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>
lib/aarch64/misc_helpers.S