diff mbox

[U-Boot,2/2] arm64: use store with auto-increment

Message ID 1485501330-9718-2-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 07a63c7e7de28ddc6cdc7d8c1e75a69b35dc6332
Delegated to: Tom Rini
Headers show

Commit Message

Masahiro Yamada Jan. 27, 2017, 7:15 a.m. UTC
Save one instruction.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/arm/lib/crt0_64.S | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Simon Glass Feb. 6, 2017, 3:33 p.m. UTC | #1
On 26 January 2017 at 23:15, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> Save one instruction.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
>  arch/arm/lib/crt0_64.S | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Feb. 9, 2017, 3:01 a.m. UTC | #2
On Fri, Jan 27, 2017 at 04:15:30PM +0900, Masahiro Yamada wrote:

> Save one instruction.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox

Patch

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