]> git.ipfire.org Git - thirdparty/u-boot.git/commit
psci: fix use of clobbered registers in asm
authorSam Edwards <cfsworks@gmail.com>
Sun, 28 May 2023 00:09:42 +0000 (18:09 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 20 Jun 2023 20:08:13 +0000 (16:08 -0400)
commit8dc2c666808a07c2ad484ef6c4f89aa551eaf265
treea19a24a3c024074afe3394a0ef12252716234b71
parent50195a23468e3a8a32cba8534d76627b5d189551
psci: fix use of clobbered registers in asm

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@gmail.com>
arch/arm/cpu/armv7/psci.S