This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Anyone knows how to get system stack pointer?

Anyone knows how to get system stack pointer? 
 
I am working on something to monitor the stack usage now. In TI's DSP, we have 2 types of stacks: system stack and task stacks. 
 
Reading the API document, it seems to me that task stack pointer can be obtained by using the system call TSK_stat(task, statbuf), where task is the task handle for the task and statbuf is the pointer to the structure type
 
struct TSK_Stat{
    TSK_Attrs attrs;
    TSK_Mode mode;
    Ptr sp;                  // this is the one we need
    size_t used;
};
 
However, I don't find any system call to get system stack pointer.  
Anyone knows that?
Thanks in advance.
Xuedong