Hello,
I have one basic doubt about how context switching work in RTOS.
Where does the RTOS saves the PC (Program Counter). Is it on the stack of the thread (Then how PC is pushed (i guess only CALL instruction has that power), or can PC be treated as any other register especially in
32bit RISC uC and pushed on stack)?Then, how does the contents of PC changed by RTOS once it is done restoring (popping) registers etc. again there is no such thing as POP PC !!!! (RET and JMP A+@DPTR come to mind)
Anybody????? Helppppp me.
Regards,
#define