RTOS Context Switch - Step 6
[Detailed Example]

Restore the TaskB context


portRESTORE_CONTEXT() completes by restoring the TaskB context from its stack into the appropriate processor registers.

AtoB5.gif

Only the program counter remains on the stack.


Next: RTOS Implementation - Detailed Example Step 7

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2012 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOS distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd..