pussuw commented on code in PR #10858:
URL: https://github.com/apache/nuttx/pull/10858#discussion_r1346069217
##########
sched/misc/assert.c:
##########
@@ -554,12 +554,22 @@ static void dump_deadlock(void)
void _assert(FAR const char *filename, int linenum,
FAR const char *msg, FAR void *regs)
{
- FAR struct tcb_s *rtcb = running_task();
+ FAR struct tcb_s *rtcb = current_task();
Review Comment:
This change I'm not quite sure about. running_task() seems to give the wrong
tcb for me, but fetching the ready-to-run head (via current_task()) always
results in the correct tcb.
--
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]