You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "zyfeier (via GitHub)" <gi...@apache.org> on 2023/05/19 10:28:53 UTC

[GitHub] [nuttx] zyfeier commented on a diff in pull request #9330: arch/arm64: .bss initialization using assembly language

zyfeier commented on code in PR #9330:
URL: https://github.com/apache/nuttx/pull/9330#discussion_r1198810509


##########
arch/arm64/src/common/arm64_head.S:
##########
@@ -335,3 +337,37 @@ boot_stage_puts:
 .type boot_low_puts, %function;
 
 #endif /* !CONFIG_ARCH_EARLY_PRINT */
+
+/***************************************************************************
+ * Name: arm64_data_initialize
+ ***************************************************************************/
+
+    .type   arm64_data_initialize, #function
+
+arm64_data_initialize:
+
+    /* Zero BSS */
+
+    adr     x0, .Linitparms
+    ldp     x1, x2, [x0], #8
+
+    mov     x0, #0
+1:
+    cmp     x1, x2
+    bge     2f
+    str     x0, [x1], #8

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org