Enrty point in the Task Control Block

Till Straumann strauman at slac.stanford.edu
Mon Jul 4 16:49:50 UTC 2005


Ali.

The way I read the sources: cpukit/rtems/src/taskstart.c calls 
cpukit/score/src/threadstart.c
where the entry point is indeed stored in the 'Start.entry_point' field 
of the TCB. Same for
the argument -- no suprises here...

HTH
-- Till


Ali Asgar Nasir wrote:

>Hi everyone...
>I have been searching the entry point of a task in the Task Control Block of
>RTEMS...
>Following is the structure  Thread_Start_information which is a member of
>RTEMS TCB
>
>typedef struct {
>  Thread_Entry         entry_point;      /* starting thread address
>*/
>  Thread_Start_types   prototype;        /* how task is invoked
>*/
>  void                *pointer_argument; /* pointer argument
>*/
>  unsigned32           numeric_argument; /* numeric argument
>*/
>                                         /* initial execution modes
>*/
>  boolean              is_preemptible;
>  Thread_CPU_budget_algorithms          budget_algorithm;
>  Thread_CPU_budget_algorithm_callout   budget_callout;
>  unsigned32           isr_level;
>  Priority_Control     initial_priority; /* initial priority
>*/
>  boolean              core_allocated_stack;
>  Stack_Control        Initial_stack;    /* stack information
>*/
>#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
>  void                *fp_context;       /* initial FP context area address
>*/
>#endif
>  void                *stack;            /* initial stack area address
>*/
>}   Thread_Start_information;
>
>However on debugging my code i found that the entry point is not stored in
>Thread_entry entry_point but is stored in unsigned32
>numeric_argument......Can anyone tell me the reason why and also what is
>meant by numeric argument...also let me know if there is any documentation
>available to describe each member of the TCB.
>
>Regards
>Ali Asgar
>
>
>
>http://www.patni.com
>World-Wide Partnerships. World-Class Solutions.
>_____________________________________________________________________
>
>This e-mail message may contain proprietary, confidential or legally
>privileged information for the sole use of the person or entity to
>whom this message was originally addressed. Any review, e-transmission
>dissemination or other use of or taking of any action in reliance upon
>this information by persons or entities other than the intended
>recipient is prohibited. If you have received this e-mail in error
>kindly delete  this e-mail from your records. If it appears that this
>mail has been forwarded to you without proper authority, please notify
>us immediately at netadmin at patni.com and delete this mail. 
>_____________________________________________________________________
>  
>





More information about the users mailing list