SunJun8 commented on PR #9103:
URL: https://github.com/apache/nuttx/pull/9103#issuecomment-1535966141

   > 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 #5905 
because restoring the next 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]

Reply via email to