<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">Can someone please help me out with this? Is what I am asking not correct/not making sense? Let me know.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Richi.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 2 Nov 2020, 21:43 Richi Dubey, <<a href="mailto:richidubey@gmail.com">richidubey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><div><br></div><div>While debugging sp16.exe, when Task_1 calls rtems_task_wake_after, following the stack trace would lead us to the scheduler code that makes a decision in selecting the next thread to execute. rtems_task_wake_after -> _Thread_Yield -> _Scheduler_Yield -> *scheduler->Operations.yield.</div><div><br></div><div>But I tried a lot and checked inside each stack when Task_5 calls rtems_task_exit(), but I could not find any code that calls the scheduler to make a decision on the next thread to execute. I also tried setting watchpoint, but to no avail:</div><div><br></div>--------------------------<div>rtems_task_exit () at /home/richi/quick-start/src/rtems/c/src/../../cpukit/rtems/src/taskexit.c:23<br>23 {<br>(gdb) awatch cpu_self->heir<br>Hardware access (read/write) watchpoint 8: cpu_self->heir<br>(gdb) c<br>Continuing.<br>Watchpoint 8 deleted because the program has left the block<br>in which its expression is valid.<br><br>Thread 1 hit Breakpoint 5, _Terminate (the_source=RTEMS_FATAL_SOURCE_EXIT, the_error=0) at /home/richi/quick-start/src/rtems/c/src/../../cpukit/score/src/interr.c:36<br>36 _User_extensions_Fatal( the_source, the_error );<br>(gdb) <div>--------------------------</div><div><br></div><div>Can someone tell me how I can achieve my goal?</div><div><br></div><div>Thanks,</div><div>Richi. </div></div></div>
</blockquote></div>