]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(bl31): avoid clearing of argument registers in RESET_TO_BL31 case
authorManish V Badarkhe <Manish.Badarkhe@arm.com>
Tue, 21 Feb 2023 11:13:34 +0000 (11:13 +0000)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Thu, 9 Mar 2023 13:51:35 +0000 (13:51 +0000)
commit3e14df6f63303adb134d525b373ec7f08c1b1dc6
tree9ee02a94bea2381af2127c72be4894b57f7b2180
parent5025546c08c51257f49d5fec7e291c03324ee165
fix(bl31): avoid clearing of argument registers in RESET_TO_BL31 case

It was assumed that BL31 is the first bootloader to run so there's
no argument to relay from a previous bootloader in RESET_TO_BL31
case, however this is not true for every platform with a non-TF-A
bootloader that might get executed before BL31 while compiling in
RESET_TO_BL31 feature.

Thus, by avoiding zeroing registers, the arguments passed from the
previous bootloader to BL31 are preserved.

Change-Id: I7bb66a10d1fd551ba3fd59a7a38ab5bde3197f72
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
bl31/aarch64/bl31_entrypoint.S