pussuw commented on a change in pull request #5782: URL: https://github.com/apache/incubator-nuttx/pull/5782#discussion_r837116560
########## File path: arch/risc-v/include/syscall.h ########## @@ -78,6 +79,7 @@ */ #define SYS_switch_context (2) +#endif /* CONFIG_ARCH_USE_S_MODE */ Review comment: It is included, riscv_swint.c: ``` #endif /* CONFIG_ARCH_USE_S_MODE */ /* A0=SYS_syscall_return: This is a SYSCALL return command: /* A0=SYS_syscall_return: This is a SYSCALL return command: * * * void up_sycall_return(void); * void up_sycall_return(void); * * * At this point, the following values are saved in context: * At this point, the following values are saved in context: * * * A0 = SYS_syscall_return * A0 = SYS_syscall_return * * * We need to restore the saved return address and return in * We need to restore the saved return address and return in * unprivileged thread mode. * unprivileged thread mode. */ */ #ifdef CONFIG_LIB_SYSCALL case SYS_syscall_return: ``` -- 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