pussuw commented on a change in pull request #5782: URL: https://github.com/apache/incubator-nuttx/pull/5782#discussion_r838175085
########## File path: arch/risc-v/src/common/riscv_swint.c ########## @@ -167,6 +175,15 @@ int riscv_swint(int irq, void *context, void *arg) { uintptr_t *regs = (uintptr_t *)context; + /* Quick patch to get this same code working with S-mode */ + +#ifdef CONFIG_ARCH_USE_S_MODE Review comment: I think this is not enough, CURRENT_REGS needs to be cleared later, wihch is done by the interrupt handling logic. Need to re-think. -- 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