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 executing process saves its
context by calling _Thread_Save_fp( executing ), then if a different
process resumes execution after the context switch, why does it get the
context of previous process (executing)?

Can someone help me learn more about this?

Thanks,
Richi.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to