zhuyanlinzyl commented on a change in pull request #5261:
URL: https://github.com/apache/incubator-nuttx/pull/5261#discussion_r790458543
##########
File path: arch/xtensa/src/common/xtensa_svcall.c
##########
@@ -94,8 +101,71 @@ int xtensa_svcall(int irq, void *context, void *arg)
case SYS_save_context:
{
+ DEBUGASSERT(regs[REG_A3] != 0);
Review comment:
This is becase "spill the register windows" was done in interrupt
handler enter.
As _xtensa_context_save will do _xtensa_window_spill all the time.
--
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]