Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

task's stack

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
No RepliesBe the first to reply