chirping78 commented on PR #14672: URL: https://github.com/apache/nuttx/pull/14672#issuecomment-2558786070
Take the task sleeping scenario as an example: - task A call sleep(), this will finally trigger syscall handler; - but when the syscall handler return, it will very likely return to idle task; - With idle task being the active task, system will go through several timer interrupts, then task A sleep time expired, the timer interrupt will return to task A. In above scenario, task A is interrrupted by `syscall` (a level1 interrupt), and if timer interrupt level in the system is 2 or 3, task A will be resumed by `RFI` I think this is a common sense that in RTOS, the interrupt handle will not determinately return to the currently being interrupted task, isn't it? https://github.com/apache/nuttx/blob/master/arch/xtensa/src/common/xtensa_user_handler.S#L289 https://github.com/apache/nuttx/blob/master/arch/xtensa/src/common/xtensa_int_handlers.S#L149 -- 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