I am using freertos port for cortex-m33 with trustzone enable, I want to backtrace the task from task stack and to do so i want to understand the frame which get pushed into the task’s stack at each context switch.
Is there any details available, what frame get pushed into the stack in PendSV_Handler?
By definition, that is implemented in the port. I do not believe that for most ports, this is documented outside the source code, so I would decode that from the source, eg here:
FreeRTOS-Kernel/portable/GCC/ARM_CM33/secure/secure_context_port.c at main · FreeRTOS/FreeRTOS-Kernel · GitHub
@RAc has shared the secure part. Here is the non-secure part - https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/portable/GCC/ARM_CM33/non_secure/portasm.c#L269.
Do you want this for understanding or are you trying to solve a problem?