[PATCH v5 05/15] board: ns3: add api to save boot parameters passed from BL31

Tom Rini trini at konsulko.com
Wed Jul 29 22:28:15 CEST 2020


On Wed, Jul 15, 2020 at 10:48:59PM +0530, Rayagonda Kokatanur wrote:

> From: Abhishek Shah <abhishek.shah at broadcom.com>
> 
> 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 at broadcom.com>
> Signed-off-by: Rajesh Ravi <rajesh.ravi at broadcom.com>
> Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov at broadcom.com>
> Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200729/47818f85/attachment.sig>


More information about the U-Boot mailing list