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>
This commit is contained in:
parent
446d4e048e
commit
b913c3f079
|
@ -117,9 +117,8 @@ relocation_return:
|
||||||
*/
|
*/
|
||||||
ldr x0, =__bss_start /* this is auto-relocated! */
|
ldr x0, =__bss_start /* this is auto-relocated! */
|
||||||
ldr x1, =__bss_end /* this is auto-relocated! */
|
ldr x1, =__bss_end /* this is auto-relocated! */
|
||||||
mov x2, #0
|
|
||||||
clear_loop:
|
clear_loop:
|
||||||
str x2, [x0]
|
str xzr, [x0]
|
||||||
add x0, x0, #8
|
add x0, x0, #8
|
||||||
cmp x0, x1
|
cmp x0, x1
|
||||||
b.lo clear_loop
|
b.lo clear_loop
|
||||||
|
|
Loading…
Reference in New Issue