hujun260 commented on code in PR #14596:
URL: https://github.com/apache/nuttx/pull/14596#discussion_r1827144139
##########
arch/avr/src/avr/avr_switchcontext.c:
##########
@@ -85,6 +85,10 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
nxsched_resume_scheduler(tcb);
+ /* Record the new "running" task */
+
+ g_running_tasks[this_cpu()] = tcb;
+
Review Comment:
Unfortunately, I don't have this hardware on my side.
But based on the code analysis, it seems that avr_switchcontext does not
update g_running_tasks, which definitely means that this logic has been
overlooked,similar to the case in the sim
--
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]