From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 29 Jul 2020 16:28:15 -0400 Subject: [PATCH v5 05/15] board: ns3: add api to save boot parameters passed from BL31 In-Reply-To: <20200715171909.25868-6-rayagonda.kokatanur@broadcom.com> References: <20200715171909.25868-1-rayagonda.kokatanur@broadcom.com> <20200715171909.25868-6-rayagonda.kokatanur@broadcom.com> Message-ID: <20200729202815.GY6965@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jul 15, 2020 at 10:48:59PM +0530, Rayagonda Kokatanur wrote: > From: Abhishek Shah > > 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 > Signed-off-by: Rajesh Ravi > Signed-off-by: Vladimir Olovyannikov > Signed-off-by: Rayagonda Kokatanur > Reviewed-by: Simon Glass 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: