Hi,
I want to learn more about how context switching works in RTEMS. I saw the
following lines in theaddispatch.c:
_Thread_Save_fp( executing );
_Context_Switch( &executing->Registers, &heir->Registers );
_Thread_Restore_fp( executing );
I do not understand how it works. Here, the ex
On Sat, Oct 31, 2020, 10:51 AM Richi Dubey wrote:
> Hi,
>
> I want to learn more about how context switching works in RTEMS. I saw the
> following lines in theaddispatch.c:
>
> _Thread_Save_fp( executing );
> _Context_Switch( &executing->Registers, &heir->Registers );
> _Thread_Restor
Richi,inside the contextswitch function, the current context ist suspended (so it is stuck/frozen die nside the context switch code) and execution switches to a different task. When the first task is reactivated, it leaves the contextswitch function. Therefore all the code around the context switch