[PATCH] psci: fix use of clobbered registers in asm

Tom Rini trini at konsulko.com
Wed Jun 21 20:40:44 CEST 2023


On Sat, May 27, 2023 at 06:09:42PM -0600, Sam Edwards wrote:

> The functions `psci_get_context_id` and `psci_get_target_pc`
> are written in C, so the C compiler may clobber registers r0-r3.
> Do not use these registers to save data across calls.
> 
> Signed-off-by: Sam Edwards <CFSworks at gmail.com>

Applied to u-boot/next, 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/20230621/27b867cd/attachment.sig>


More information about the U-Boot mailing list