Quality RTOS & Embedded Software

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


Loading

Push task stack content when task exit from run mode

Posted by michaeln32 on January 16, 2018

Hi,

When task is exiting from run mode, It's stack filled up with run time envierment registers.

Can you please tell me or give me a reference on what is the content and type of registers that are pushed in stack and the order they filled in.

I'm using MISP processor with freeRTOS kernel.


Push task stack content when task exit from run mode

Posted by rtel on January 16, 2018

Do you mean MIPS? Rather than MISP?

Any processor register that is essential to the execution path of the task is saved - both general purpose and special purpose registers. Rather than go and look at the source files myself and list the registers here I will just post a link to the source file so you can look yourself - remember FreeRTOS is open source you can just read the source files:

https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/portable/MPLAB/PIC32MX/port.c (look at vPortInitialiseStack())

https://sourceforge.net/p/freertos/code/HEAD/tree/trunk/FreeRTOS/Source/portable/MPLAB/PIC32MX/ISRSupport.h (look at portSAVECONTEXT())


Push task stack content when task exit from run mode

Posted by michaeln32 on January 16, 2018

Thank you Richard !

Yes, I'm using MIPS.

Are the links above are representing MIPS processor ?


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


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

Webinar

"OTA Update Security and Reliability" webinar presented by TI and AWS. Register here.


Careers

FreeRTOS and other embedded software careers at AWS.


Latest News

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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