FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [March 2013 Threads] Finding out task next instruction to executePosted by Tamir Michael on March 1, 2013 Hello,
Using the macro traceTASK_SWITCHED_OUT, I wonder if it is easily possible to figure out which instruction a switched-out task is about to return to the next time it is switched in (without hacking the kernel...)?
Thanks in advance
RE: Finding out task next instruction to executePosted by Richard on March 1, 2013 The task return address will always be locate-able, but how it is located is very dependent on the port you are using. In some ports it will be at an offset form the stack pointer when traceTASK_SWITCHED_OUT is called, and in other ports it will be at an offset from an alternative stack pointer value.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|