[PATCH 05/30] tegra: lowlevel: setup an early stack
Lucas Stach
dev at lynxeye.de
Tue Jun 3 13:34:52 PDT 2014
Even the lowlevel functions are growing to a
size where having a stack seem beneficial.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
arch/arm/mach-tegra/include/mach/lowlevel.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-tegra/include/mach/lowlevel.h b/arch/arm/mach-tegra/include/mach/lowlevel.h
index 1026518..80d65a6 100644
--- a/arch/arm/mach-tegra/include/mach/lowlevel.h
+++ b/arch/arm/mach-tegra/include/mach/lowlevel.h
@@ -272,6 +272,8 @@ void tegra_cpu_lowlevel_setup(void)
r &= ~0x1f;
r |= 0xd3;
__asm__ __volatile__("msr cpsr, %0" : : "r"(r));
+
+ arm_setup_stack(TEGRA_IRAM_BASE + SZ_256K - 8);
tegra_ll_delay_setup();
}
--
1.9.3
More information about the barebox
mailing list