pussuw commented on a change in pull request #5782:
URL: https://github.com/apache/incubator-nuttx/pull/5782#discussion_r837260639



##########
File path: arch/risc-v/include/syscall.h
##########
@@ -207,7 +164,15 @@ static inline uintptr_t sys_call0(unsigned int nbr)
 
   asm volatile
     (
+#if defined (CONFIG_ARCH_USE_S_MODE) && defined (__KERNEL__)

Review comment:
       This should now select the correct implementation per referrer, so for 
kernel in S-mode the trampoline is used, and for flat/protected/user mode in 
kernel build, ecall is used




-- 
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-unsubscr...@nuttx.apache.org

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


Reply via email to