]> git.sur5r.net Git - u-boot/commit
ARM: PSCI: use only r0 and r3 in psci_get_cpu_stack_top()
authorChen-Yu Tsai <wens@csie.org>
Tue, 7 Jun 2016 02:54:24 +0000 (10:54 +0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 20 Jun 2016 20:43:59 +0000 (22:43 +0200)
commitdae08d228122e4ad296077106520a4db3ca17872
treed4b3f5cb90450524a65c3d74afb6fdaae85bf2cf
parent3da9536e8f377d8ec63df930bfd27c700475b68e
ARM: PSCI: use only r0 and r3 in psci_get_cpu_stack_top()

For psci_get_cpu_stack_top() to be usable in C code, it must adhere to
the ARM calling conventions. Since it could be called when the stack
is still unavailable, and the entry code to linux also expects r1 and
r2 to remain unchanged, stick to r0 and r3.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/psci.S