hujun260 commented on issue #14593: URL: https://github.com/apache/nuttx/issues/14593#issuecomment-2458606511
> is it right? yes > The issue might be the fact that we have a task specific `tcb.irqcount` (which is IMO the correct way to do the recursion, as critical sections are task specific states) and a global "per-cpu" irqcount `g_cpu_nestcount` which is supposed to supersede the task specific recursion counter "somehow". when an interrupt occurs, g_cpu_nestcount is used as the recursive counter because context switching may happen and this_task() will change, and tcp->irqcount cannot be used. -- 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]
