Forum Discussion
Altera_Forum
Honored Contributor
15 years agofreertos - memory used
Hi everybody! I have installed freeRTOS operating system into a cyclone iii. With this operating system it is possible to assign a piece of the RAM memory for each task. I want to know how much...
Altera_Forum
Honored Contributor
15 years agoBasically during a context switch an OS saves the stack pointer into the current process's control block (PCB). It then loads the stack pointer of the new process and excutes a 'return' instruction.
Other registers might be saved in the PCB or on stack, the callee saved registers need not be saved - but may be saved to avoid leaking values from other contexts.