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/04/12 11:42:07 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6028: libc:xtensa: move syscall to swint call

xiaoxiang781216 commented on code in PR #6028:
URL: https://github.com/apache/incubator-nuttx/pull/6028#discussion_r848337194


##########
libs/libc/machine/xtensa/arch_setjmp.S:
##########
@@ -127,8 +129,10 @@ setjmp:
 
   /* Flush registers.  */
   mov a4, a2      # save a2 (jmp_buf)
-  movi  a2, 0
-  syscall
+  movi  a2, SYS_flush_context

Review Comment:
   let's reuse full_contextsave and contextrestore?



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