Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soc: arm: viper: Fix callee saved register corruption in el3 init
x19 is callee saved register. z_arch_el3_plat_init being a callee, it should save it before using it. However, at this point, stack has not been setup. So, let's just use x20 instead which is not being used caller yet. This bug was causing VBAR_EL1 corruption, but since [10:0] bits are reserved, bug was hidden. Signed-off-by: Abhishek Shah <[email protected]>
- Loading branch information