summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-05-17 16:38:06 +0900
committerTom Rini <trini@konsulko.com>2016-05-27 15:47:54 -0400
commit25828588412c1f951d72e1eda9e4320d422b7be5 (patch)
tree09ab1e4fcae2e5f668b5ae3d2da0d9beecee6c98 /arch/arm/cpu/armv8
parent3d16389c909657a5fd1017e771ce5acf8aed6189 (diff)
downloadu-boot-imx-25828588412c1f951d72e1eda9e4320d422b7be5.zip
u-boot-imx-25828588412c1f951d72e1eda9e4320d422b7be5.tar.gz
u-boot-imx-25828588412c1f951d72e1eda9e4320d422b7be5.tar.bz2
arm64: optimize __asm_{flush, invalidate}_dcache_all
__asm_dcache_all can directly return to the caller of __asm_{flush,invalidate}_dcache_all. We do not have to waste x16 register here. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch/arm/cpu/armv8')
-rw-r--r--arch/arm/cpu/armv8/cache.S10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/cpu/armv8/cache.S b/arch/arm/cpu/armv8/cache.S
index a9f4fec..1c71a2f 100644
--- a/arch/arm/cpu/armv8/cache.S
+++ b/arch/arm/cpu/armv8/cache.S
@@ -104,19 +104,13 @@ finished:
ENDPROC(__asm_dcache_all)
ENTRY(__asm_flush_dcache_all)
- mov x16, lr
mov x0, #0
- bl __asm_dcache_all
- mov lr, x16
- ret
+ b __asm_dcache_all
ENDPROC(__asm_flush_dcache_all)
ENTRY(__asm_invalidate_dcache_all)
- mov x16, lr
mov x0, #0x1
- bl __asm_dcache_all
- mov lr, x16
- ret
+ b __asm_dcache_all
ENDPROC(__asm_invalidate_dcache_all)
/*