[U-Boot] [PATCH 2/2] arm64: use store with auto-increment
Masahiro Yamada
yamada.masahiro at socionext.com
Fri Jan 27 08:15:30 CET 2017
Save one instruction.
Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---
arch/arm/lib/crt0_64.S | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm/lib/crt0_64.S b/arch/arm/lib/crt0_64.S
index f8e84b2..19c6a98 100644
--- a/arch/arm/lib/crt0_64.S
+++ b/arch/arm/lib/crt0_64.S
@@ -118,8 +118,7 @@ relocation_return:
ldr x0, =__bss_start /* this is auto-relocated! */
ldr x1, =__bss_end /* this is auto-relocated! */
clear_loop:
- str xzr, [x0]
- add x0, x0, #8
+ str xzr, [x0], #8
cmp x0, x1
b.lo clear_loop
--
2.7.4
More information about the U-Boot
mailing list