summaryrefslogtreecommitdiff
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-27 07:15:29 (GMT)
committerTom Rini <trini@konsulko.com>2017-02-08 14:17:30 (GMT)
commitb913c3f0790a4785b2cf0afa49d4c3e4ffddc2cd (patch)
treec2f7f3bfc24254304170029e175062fde3ec2cf5 /arch/arm/lib
parent446d4e048ee3b00f7907e15cd02aa404cc714c77 (diff)
downloadu-boot-fsl-qoriq-b913c3f0790a4785b2cf0afa49d4c3e4ffddc2cd.tar.xz
arm64: use xzr to zero-out the bss section
AArch64 has a zero register (xzr). Use it instead of x2. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/crt0_64.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/lib/crt0_64.S b/arch/arm/lib/crt0_64.S
index 91b19e0..f8e84b2 100644
--- a/arch/arm/lib/crt0_64.S
+++ b/arch/arm/lib/crt0_64.S
@@ -117,9 +117,8 @@ relocation_return:
*/
ldr x0, =__bss_start /* this is auto-relocated! */
ldr x1, =__bss_end /* this is auto-relocated! */
- mov x2, #0
clear_loop:
- str x2, [x0]
+ str xzr, [x0]
add x0, x0, #8
cmp x0, x1
b.lo clear_loop