_Context_Switch call

Ahmet Akkas akkas at lucent.com
Mon Aug 28 15:31:29 UTC 2000


Hi,

Could you please tell me why Context Switch routine is called at 
the beginning of the multitasking? The following is the sequence 
of the calls until _Context_Switch() is called. Thanks in advance.

in  ...(board)/startup/main.c
    rtems_initialize_executive_late( bsp_isr_level );

in .../exec/sapi/src/exinit.c
    _Thread_Start_multitasking();

in .../exec/score/src/threadstartmultitasking.c
    _Context_Switch( &_Thread_BSP_context, &_Thread_Heir->Registers );


Ahmet



More information about the users mailing list