diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-09 10:21:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-09 10:26:07 +0200 |
commit | 6b3dc4abd884e7e3e1ac734d23ebbbfab1d44171 (patch) | |
tree | 44f5ea07ccb96e56a1c0a5ce92173ce5d4d70b1b /arch/arm/boards/phytec-som-imx6 | |
parent | 971307cf0132d02b3d361117c2b1f90893404eab (diff) | |
download | barebox-6b3dc4abd884e7e3e1ac734d23ebbbfab1d44171.tar.gz barebox-6b3dc4abd884e7e3e1ac734d23ebbbfab1d44171.tar.xz |
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/boards/phytec-som-imx6')
-rw-r--r-- | arch/arm/boards/phytec-som-imx6/lowlevel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/boards/phytec-som-imx6/lowlevel.c b/arch/arm/boards/phytec-som-imx6/lowlevel.c index 07bb0ed1b5..2de84169c6 100644 --- a/arch/arm/boards/phytec-som-imx6/lowlevel.c +++ b/arch/arm/boards/phytec-som-imx6/lowlevel.c @@ -59,11 +59,11 @@ static void __noreturn start_imx6_phytec_common(uint32_t size, || cpu_type == IMX6_CPUTYPE_IMX6ULL) { imx6ul_cpu_lowlevel_init(); /* OCRAM Free Area is 0x00907000 to 0x00918000 (68KB) */ - arm_setup_stack(0x00910000 - 8); + arm_setup_stack(0x00910000); } else { imx6_cpu_lowlevel_init(); /* OCRAM Free Area is 0x00907000 to 0x00938000 (196KB) */ - arm_setup_stack(0x00920000 - 8); + arm_setup_stack(0x00920000); } if (do_early_uart_config && IS_ENABLED(CONFIG_DEBUG_LL)) |