From 6b3dc4abd884e7e3e1ac734d23ebbbfab1d44171 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 9 Sep 2019 10:21:38 +0200 Subject: 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 --- arch/arm/boards/eltec-hipercam/lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/boards/eltec-hipercam/lowlevel.c') diff --git a/arch/arm/boards/eltec-hipercam/lowlevel.c b/arch/arm/boards/eltec-hipercam/lowlevel.c index b0d3155023..2f2cd9aab7 100644 --- a/arch/arm/boards/eltec-hipercam/lowlevel.c +++ b/arch/arm/boards/eltec-hipercam/lowlevel.c @@ -39,7 +39,7 @@ ENTRY_FUNCTION(start_imx6dl_eltec_hipercam, r0, r1, r2) imx6_cpu_lowlevel_init(); - arm_setup_stack(0x00940000 - 8); + arm_setup_stack(0x00940000); if (IS_ENABLED(CONFIG_DEBUG_LL)) setup_uart(); -- cgit v1.2.3