ARM: orion5x: fix use of callee-saved registers in lowloevel_init
authorMans Rullgard <mans@mansr.com>
Mon, 7 May 2018 10:10:47 +0000 (11:10 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 7 Jun 2018 13:12:26 +0000 (09:12 -0400)
commit66a00be2878dc0f972a6e100e91af5942ef8f736
treec2fcfc733a69508a06b450f4f6ada36d352e03c3
parent3eceff642c01e03e055127c9cf21608faaff28ac
ARM: orion5x: fix use of callee-saved registers in lowloevel_init

The lowlevel_init function uses r4 and r6 without preserving their
values as required by the AAPCS.  Use r0 and r2 instead as these
are call-clobbered.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
arch/arm/mach-orion5x/lowlevel_init.S