Skip to content
Snippets Groups Projects
Commit 25828588 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 3d16389c
No related branches found
No related tags found
No related merge requests found
...@@ -104,19 +104,13 @@ finished: ...@@ -104,19 +104,13 @@ finished:
ENDPROC(__asm_dcache_all) ENDPROC(__asm_dcache_all)
ENTRY(__asm_flush_dcache_all) ENTRY(__asm_flush_dcache_all)
mov x16, lr
mov x0, #0 mov x0, #0
bl __asm_dcache_all b __asm_dcache_all
mov lr, x16
ret
ENDPROC(__asm_flush_dcache_all) ENDPROC(__asm_flush_dcache_all)
ENTRY(__asm_invalidate_dcache_all) ENTRY(__asm_invalidate_dcache_all)
mov x16, lr
mov x0, #0x1 mov x0, #0x1
bl __asm_dcache_all b __asm_dcache_all
mov lr, x16
ret
ENDPROC(__asm_invalidate_dcache_all) ENDPROC(__asm_invalidate_dcache_all)
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment