<div dir="ltr">I am looking at cpukit/include/rtems/confdefs/inittask.h right now and so, I know the answer to:<br><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is _RTEMS_tasks_Initialize_user_task responsible for starting the Init task?</blockquote><div><br></div><div>Still need help with other things.</div><div><br></div><div>Thanks. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 14, 2020 at 2:55 PM Richi Dubey <<a href="mailto:richidubey@gmail.com">richidubey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div><br></div><div>I've been trying to debug my program and I request someone to help me learn more about what happens when a system starts. Logically, what is the flow of things happening? Do all the CPUs start at the same time in the beginning? Which is the first node that gets scheduled on the CPU? </div><div><br></div><div>The current flow I see right now is:</div><div><br></div><div>bsp_start_hook_0_done -> boot_card -> rtems_initialize_executive -> _RTEMS_tasks_Initialize_user_task -> rtems_task_start and so on.</div><div><br></div><div>Is _RTEMS_tasks_Initialize_user_task responsible for starting the Init task?<br></div><div><br></div><div>Also how does the following code which is part of rtems_initialize_executive:</div><div><br></div><div> /* Invoke the registered system initialization handlers */<br> RTEMS_LINKER_SET_FOREACH( _Sysinit, item ) {<br> ( *item->handler )();<br> }<br><br></div><div>call _RTEMS_tasks_Initialize_user_task?</div><div><br></div><div>Please let me know.</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div>