summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga/include/mach
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-09-09 10:21:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-09-09 10:26:07 +0200
commit6b3dc4abd884e7e3e1ac734d23ebbbfab1d44171 (patch)
tree44f5ea07ccb96e56a1c0a5ce92173ce5d4d70b1b /arch/arm/mach-socfpga/include/mach
parent971307cf0132d02b3d361117c2b1f90893404eab (diff)
downloadbarebox-6b3dc4abd884e7e3e1ac734d23ebbbfab1d44171.tar.gz
ARM: Cleanup stack offset cargo cult
Most callers of arm_setup_stack substract a fixed offset of 8, 12 or 16 bytes from the stack top. This is unnecessary as on ARM we have a stack that decrements before storing values. Substracting this offset probably goes back to the U-Boot version we forked from. Stop this now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-socfpga/include/mach')
-rw-r--r--arch/arm/mach-socfpga/include/mach/lowlevel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/lowlevel.h b/arch/arm/mach-socfpga/include/mach/lowlevel.h
index 03a2ea6..657e07a 100644
--- a/arch/arm/mach-socfpga/include/mach/lowlevel.h
+++ b/arch/arm/mach-socfpga/include/mach/lowlevel.h
@@ -72,7 +72,7 @@ static noinline void SECT(start_socfpga_c5_xload_common)(uint32_t size)
{ \
arm_cpu_lowlevel_init(); \
\
- arm_setup_stack(0xffff0000 + SZ_64K - SZ_4K - 16); \
+ arm_setup_stack(0xffff0000 + SZ_64K - SZ_4K); \
\
start_socfpga_c5_xload_common(memory_size); \
}