You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/11 16:56:26 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5401: sim: initial support sim:nsh on MacOS M1 and Linux ARM64 based hosts.

xiaoxiang781216 commented on a change in pull request #5401:
URL: https://github.com/apache/incubator-nuttx/pull/5401#discussion_r804837331



##########
File path: arch/sim/include/setjmp.h
##########
@@ -97,12 +101,42 @@
 #  define JB_FP               JB_EBP
 
 #elif defined(CONFIG_HOST_ARM)
+
 #  define XCPTCONTEXT_REGS    16
 #  define XCPTCONTEXT_SIZE    (4 * XCPTCONTEXT_REGS)
 
 #  define JB_FP               7
 #  define JB_SP               8
 #  define JB_PC               9
+
+#elif defined(CONFIG_HOST_ARM64)
+
+#  define XCPTCONTEXT_REGS    32
+#  define XCPTCONTEXT_SIZE    (8 * XCPTCONTEXT_REGS)
+
+#  ifdef __ASSEMBLY__
+
+#    define	JB_X19_X20        #0x00

Review comment:
       ```suggestion
   #    define	JB_X19_X20     #0x00
   ```




-- 
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