Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Software interrupt for Context Switch

Posted by leesp on January 10, 2019

Just a fundamental concept which I struggle to figure out: Why is it necessary that, the software interrupt which triggers context switch, must be of lowest priority? Why should the context switch be postponed until all other interrupt requests are handled?


Software interrupt for Context Switch

Posted by rtel on January 10, 2019

I think there are other reasons too - but primarily because it is used in interrupt service routines too. The way the interrupt nesting works, to get the most efficient system, and to get best advantage of tail chaining, you want the context switch to only occur once and after all other interrupts have completed - not for a context switch to occur in every nested interrupt which is what would happen if the PendSV interrupt had a priority above that which was requesting the context switch.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

FreeRTOS v10.2.1 is available for immediate download. MIT licensed, includes 64-bit RISC-V, NXP Cortex-M33 demo, Nuvoton Cortex-M23 demo & STM32H745 dual core (AMP) demo.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Mediatek

Renesas

RISC-V

SiFIve RISC-V

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner