summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-06-03 22:34:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-05 08:01:14 +0200
commit781930000051ed8259c04560c0e5155fbf9ddcf9 (patch)
treedd0465e29d19a236c97e90bdcf1e219d78ac1950 /arch/arm/mach-tegra
parenta41187b2e99bf29f4273857f9803777d51a2f6b9 (diff)
downloadbarebox-781930000051ed8259c04560c0e5155fbf9ddcf9.tar.gz
barebox-781930000051ed8259c04560c0e5155fbf9ddcf9.tar.xz
tegra: lowlevel: setup an early stack
Even the lowlevel functions are growing to a size where having a stack seem beneficial. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/include/mach/lowlevel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/lowlevel.h b/arch/arm/mach-tegra/include/mach/lowlevel.h
index 10265183c1..80d65a6c30 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();
}