]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm64: use store with auto-increment
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Jan 2017 07:15:30 +0000 (16:15 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 8 Feb 2017 14:17:31 +0000 (09:17 -0500)
Save one instruction.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/lib/crt0_64.S

index f8e84b2fc8b56342b03c2d2c01f84791a76bbd7c..19c6a985cdf43f228e71a54a316f0d2ffd8915e1 100644 (file)
@@ -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