Quality RTOS & Embedded Software

December 2021 Releases:
Extended Maintenance Plan (EMP):
FreeRTOS 202111.00 Release:
FreeRTOS LTS libraries:
Symmetric Multi-Processing:

RTOS Context Switch - Step 5
[Detailed Example]

The TaskB stack pointer is retrieved


The TaskB context must be restored. The first thing RTOS macro portRESTORE_CONTEXT does is retrieve the TaskB stack pointer from the copy taken when TaskB was suspended. The TaskB stack pointer is loaded into the processor stack pointer, so now the AVR stack points to the top of the TaskB context.

Next: RTOS Implementation - Detailed Example Step 6

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.