From: zijun_hu Date: Sat, 23 Sep 2017 13:30:58 +0800 Subject: [U-Boot] [PATCH 1/1] ARMv8: fix error in freeing stack frame Message-ID: <4d3a3ded-c3ac-2890-8f87-e8708633b283@zoho.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: zijun_hu relocate_code() allocates 32 bytes stack frame but only 16 bytes are freed before return. it will cause errors to possible previous frames and doesn't make relocate_code() look like a function. fix by freeing 32 bytes stack space Signed-off-by: zijun_hu --- arch/arm/lib/relocate_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/relocate_64.S b/arch/arm/lib/relocate_64.S index c7600537063f..fdba004363af 100644 --- a/arch/arm/lib/relocate_64.S +++ b/arch/arm/lib/relocate_64.S @@ -73,6 +73,6 @@ relocate_done: isb sy 4: ldp x0, x1, [sp, #16] bl __asm_flush_dcache_range -5: ldp x29, x30, [sp],#16 +5: ldp x29, x30, [sp],#32 ret ENDPROC(relocate_code) -- 1.9.1