From: Masahiro Yamada Date: Fri, 27 Jan 2017 07:15:30 +0000 (+0900) Subject: arm64: use store with auto-increment X-Git-Tag: v2017.03-rc2~37 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07a63c7e7de28ddc6cdc7d8c1e75a69b35dc6332;p=oweals%2Fu-boot.git arm64: use store with auto-increment Save one instruction. Signed-off-by: Masahiro Yamada Reviewed-by: Simon Glass --- diff --git a/arch/arm/lib/crt0_64.S b/arch/arm/lib/crt0_64.S index f8e84b2fc8..19c6a985cd 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