On Wed, 14 May 2008 11:23:13 +0200, Matthieu
<[EMAIL PROTECTED]> wrote:
> 
> 
> On Tue, 13 May 2008 11:16:56 +0200, Matthieu
> <[EMAIL PROTECTED]> wrote:
>> On Sun, 11 May 2008 00:40:07 +0200, Gilles Chanteperdrix
>> <[EMAIL PROTECTED]> wrote:
>>> Philippe Gerum wrote:
>>>  > Matthieu wrote:
>>>  > > Im currently porting a VxWorks Application in SuSE Linux patched
>> with
>>>  > > Xenomai. I encounter some problems with the taskLib.h emulation.
>>> Indeed,
>>>  > > Ive got an error concerning WIND_TCB structure. I think that not
>> the
>>>  > > whole structure is implemented or maybe its implemented by Xenomai
>>>  > > Native API and not VxWorks skin.
>>>  > >
>>>  >
>>>  > Implementing the whole WIND_TCB structure is out of scope. Most of
>> the
>>> fields
>>>  > you attempt to access in your app are dependent on the VxWorks
>> innards,
>>> which is
>>>  > meaningless in an emulation environment. You can emulate the others
>> (or
>>> their
>>>  > meaning) fairly easily (e.g. pStackBase and status).
>>>  >
>>>  > > Here are extracts of Code.c:
>>>  > >  #include <vxworks/vxworks.h>
>>>  > >  WIND_TCB * pTcb;
>>>  > >  pTcb->entry
>>>  > >  pTcb->lockCnt
>>>  > >  pTcb->pSignalInfo->sigt_blocked
>>>
>>> ... And you may access signal mask with the posix pthread_sigmask
>>> service (if the first sigset_t pointer is NULL, the "how" argument is
>>> ignored, and the only effect of the service is to copy the current
>>> signal mask).
>>>
>>> --
>>>
>>>
>>>                                         Gilles.
>>
>> Thank you for your answers.
>> First, in my investigation, I found out that in vxworks/vxworks.h there
>> are
>> different definitions of WIND_TCB while the compilation occur in kernel
>> mode and xeno_sim or not. What does it mean ?
>> I think I've understood what you say. The problem is how can I emulate
> the
>> fields I need since I don't know if they can be treated as standard
>> threads
>> with pthread.h and signal.h ? Do I need to use Xenomai specific
>> implementation of such information to get the field value ?
>> The field are
>>  entry         (entry point of task)
>>  lockCnt       (preemtion lock count)
>>  pSignalInfo   (ptr to signal info for task)
>>  pStackBase    (points to bottom of stack)
>>  SafeCnt       (safe_from_delete count)
>>  status        (status of task)
>>  safetyQHead   (safe_from_delete q head)
>>  ptaskVar      (ptr to task variable list)
>>  options       (task option bits)
>>
>> Matthieu
>>
>>
> 
> I still don't have any solution to emulate the fields above listed as I
> don't know if I can use Linux posix services ?
> 
> Matthieu

Does a Xenomai Task Control Block exist ?

Matthieu

> 
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> [email protected]
>> https://mail.gna.org/listinfo/xenomai-help
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to