]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: ns3: add api to save boot parameters passed from BL31
authorAbhishek Shah <abhishek.shah@broadcom.com>
Wed, 15 Jul 2020 17:18:59 +0000 (22:48 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 29 Jul 2020 14:13:41 +0000 (10:13 -0400)
commitef7192e4043d7724f0d063072092e00150fb1f5e
tree8a70244805bc5075d35fd98cf45b9f5cad7b38e0
parent69d8acc30ba05dd5d5bc7a874f99ed254eb17d33
board: ns3: add api to save boot parameters passed from BL31

Add API to save boot parameters passed from BL31

Use assembly implementation of save_boot_params instead of c function.
Because generally ATF does not set up SP_EL2 on exiting.
Thus, usage of a C function immediately after exiting with no stack
setup done by ATF explicitly, may cause SP_EL2 to be not sane,
which in turn causes a crash if this boot was not lucky to get
an SP_EL2 in valid range. Replace C implementation with assembly one
which does not use stack this early, and let u-boot to set up its stack
later.

Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
Signed-off-by: Rajesh Ravi <rajesh.ravi@broadcom.com>
Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv8/bcmns3/lowlevel.S
arch/arm/include/asm/arch-bcmns3/bl33_info.h [new file with mode: 0644]
board/broadcom/bcmns3/ns3.c