mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-07 12:00:51 +09:00
arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load
The 4.2.2 gcc in the ELDK42 release doesn't like the direct SP load using a constant in tegra2_start. Change it to use a load thru another reg using mov sp, %0 : : "r"(CONST). Tested on my Seaboard T20-A03, U-Boot loads and runs OK. Also compiled all tegra2 builds with both gcc 4.2.2 and 4.4.1 OK. Signed-off-by: Tom Warren <twarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5c1ad3e6f8
commit
d8bd820935
@ -301,8 +301,8 @@ void tegra2_start(void)
|
||||
* If we are ARM7 - give it a different stack. We are about to
|
||||
* start up the A9 which will want to use this one.
|
||||
*/
|
||||
asm volatile("ldr sp, =%c0\n"
|
||||
: : "i"(AVP_EARLY_BOOT_STACK_LIMIT));
|
||||
asm volatile("mov sp, %0\n"
|
||||
: : "r"(AVP_EARLY_BOOT_STACK_LIMIT));
|
||||
|
||||
start_cpu((u32)_start);
|
||||
halt_avp();
|
||||
|
Loading…
Reference in New Issue
Block a user