Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

task's stack

Altera_Forum
Honored Contributor II
882 Views

Hello community, 

I have observed the contents of a task' stack from the OSTaskStkInit function to the OSStartTsk. Before jumping to the application function of the task, the stack already contains some data (e.g. OSStartTsk's address, pdata pointer, etc) and I have noticed that the "sp" cpu register points to an address that is not the end of all these data. Then, the stack frame allocated for the application function overlaps these data.  

Although it doesn't affect the functioning of the system, I wonder if that is correct. 

 

Thanks
0 Kudos
0 Replies
Reply