From: zijun_hu Date: Sat, 23 Sep 2017 05:30:58 +0000 (+0800) Subject: ARMv8: fix error in freeing stack frame X-Git-Tag: v2017.11-rc2~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7baf952fdb93527bee6a4a95f2bfb7c15484a09f;p=u-boot ARMv8: fix error in freeing stack frame 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 Reviewed-by: Simon Glass --- diff --git a/arch/arm/lib/relocate_64.S b/arch/arm/lib/relocate_64.S index c760053706..fdba004363 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)