xiaoxiang781216 commented on code in PR #18101:
URL: https://github.com/apache/nuttx/pull/18101#discussion_r2717195512
##########
arch/arm64/src/common/arm64_vectors.S:
##########
@@ -121,6 +121,24 @@ SECTION_FUNC(text, arm64_jump_to_user)
mrs x0, sctlr_el1
str x0, [sp, #8 * REG_SCTLR_EL1]
b arm64_exit_exception
+
+#elif defined(CONFIG_BUILD_PROTECTED)
+GTEXT(arm64_jump_to_user)
Review Comment:
but's almost same, why not add #ifdef/#elif/#endif inside the function body
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]