pussuw commented on pull request #5731:
URL: https://github.com/apache/incubator-nuttx/pull/5731#issuecomment-1080751884


   > Yes, xcp.regs[] is in the kernel space, but the thread stack pointed by SP 
isn't.
   
   Exactly, and now the memory for the task context is taken from the stack. 
Previously the memory was in tcb, as xcp.regs was a buffer, not a pointer. This 
is why the old code works, because the buffer is in kernel memory, for both 
tasks.


-- 
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


Reply via email to