mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-23 13:10:26 +09:00
bbfb81c187
The startup code in arm/cpu/arm926ejs preserves the link register across the call to lowlevel_init by using r4: mov r4, lr /* perserve link reg across call */ bl lowlevel_init /* go setup pll,mux,memory */ mov lr, r4 /* restore link */ The lowlevel_init function for at91 machines based on the same CPU uses r4 and hence corrupts it causing a data abort when it returns to the startup code. This patch fixes this by using r6 instead of r4 in the lowlevel_init function. Discovered and the fix was tested on a AT91SAM9261 based board. Signed-off-by: Martin Townsend <martin@rufilla.com> Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com> |
||
---|---|---|
.. | ||
at91sam9m10g45_devices.c | ||
at91sam9n12_devices.c | ||
at91sam9rl_devices.c | ||
at91sam9x5_devices.c | ||
at91sam9260_devices.c | ||
at91sam9261_devices.c | ||
at91sam9263_devices.c | ||
clock.c | ||
cpu.c | ||
eflash.c | ||
led.c | ||
lowlevel_init.S | ||
Makefile | ||
reset.c | ||
sam9x60_devices.c | ||
timer.c | ||
u-boot-spl.lds |