]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARMv8: fix error in freeing stack frame
authorzijun_hu <zijun_hu@htc.com>
Sat, 23 Sep 2017 05:30:58 +0000 (13:30 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 8 Oct 2017 20:19:56 +0000 (16:19 -0400)
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 <zijun_hu@htc.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/relocate_64.S

index c7600537063f86b3297bc8a8a34af6db88e0bdca..fdba004363af38de84ad7d8cd33db556aa6de4d7 100644 (file)
@@ -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)