xiaoxiang781216 commented on code in PR #14964: URL: https://github.com/apache/nuttx/pull/14964#discussion_r1860527567
########## arch/xtensa/src/common/xtensa_irqdispatch.c: ########## @@ -65,7 +65,11 @@ uint32_t *xtensa_irq_dispatch(int irq, uint32_t *regs) up_set_current_regs(regs); - if (*running_task != NULL) + /* This judgment proves that (*running_task)->xcp.regs + * is invalid, and we can safely overwrite it. + */ + + if (!(XTENSA_IRQ_SWINT == irq && regs[REG_A2] == SYS_restore_context)) Review Comment: can we ensure regs correctly? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
