Hi,
I would like to know where the PC was for a given task.
But the following structure does not have program counter.
struct KNL_Obj
{
QUE_Elem ready; /* ready/semaphore queue elem */
QUE_Elem alarm; /* alarm queue elem */
QUE_Elem setpri; /* set priority queue elem */
QUE_Handle queue; /* task's ready queue */
Int priority; /* task priority */
Uns mask; /* 1 << priority */
Ptr sp; /* current stack pointer */
Uns timeout; /* timeout value */
Int mode; /* KNL_BLOCKED, KNL_READY,... */
/* * This STS Object is used to measure the time from when the task is
* made ready, until the function TSK_deltatime() is called. When the
* task is made ready, the STS object is "set" to the current time. */
STS_Obj *sts; Bool signalled; /* pending task waken up by sem or timeout */
};
Thank you for the help.
Regards,
Steve