[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Task stack pointer
- Date: Fri, 04 Jul 2003 10:36:51 +1000
- From: cjohns at cybertec.com.au (Chris Johns)
- Subject: Task stack pointer
Derick Hammond wrote:
>
> This is probably another fundamental question.
>
> Is there a way of determining the base address of a stack for a
> particular task?
>
You need the task control block. Once you have that then:
tcb->Start.Initial_stack.area
You may wish to look over the capture engine and RTEMS monitor code. They are in the
libmisc tree. Both these modules have interesting little bit and pieces when looking
a little deeper in RTEMS.
--
Chris Johns, cjohns at cybertec . com . au