This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 59450bf9a9 arch/arm64: use adrp instead adr in bss init code
59450bf9a9 is described below
commit 59450bf9a9b75d3b06e8d402b5a7870aa0dea7bb
Author: Peter Bee <[email protected]>
AuthorDate: Fri Jun 2 18:06:52 2023 +0800
arch/arm64: use adrp instead adr in bss init code
To support address offset larger than 1MB
Signed-off-by: Peter Bee <[email protected]>
---
arch/arm64/src/common/arm64_head.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/src/common/arm64_head.S
b/arch/arm64/src/common/arm64_head.S
index f90c0d953f..886c1202ea 100644
--- a/arch/arm64/src/common/arm64_head.S
+++ b/arch/arm64/src/common/arm64_head.S
@@ -364,7 +364,8 @@ arm64_data_initialize:
/* Zero BSS */
- adr x0, .Linitparms
+ adrp x0, .Linitparms
+ add x0, x0, .Linitparms
ldp x1, x2, [x0], #8
mov x0, #0