pussuw commented on PR #9103: URL: https://github.com/apache/nuttx/pull/9103#issuecomment-1534138938
Now I think I understand what might be going on, and indeed the problem is that we save and restore the registers even if a context switch does not happen. I now remember what has happened, we needed to do this change https://github.com/apache/nuttx/pull/5905 because restoring the new task's FPU registers from the stack did not work with CONFIG_ARCH_ADDRENV=y because the wrong address environment was in use (stack virtual address points to wrong context). My suggestion is that we try again to do the lazy FPU save / restore only when a context switch happens, not when an exception is taken. What do you think @xiaoxiang781216 @SunJun8 ? -- 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]
