All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: matthieu.connaulte_xenomai@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] VxWorks skin problem concerning WIND_TCB structure
Date: Sat, 10 May 2008 22:28:59 +0200	[thread overview]
Message-ID: <4826058B.4090103@domain.hid> (raw)
In-Reply-To: <4e888e043f64dd610bf15a02a955a84b@domain.hid>

Matthieu wrote:
> I’m currently porting a VxWorks Application in SuSE Linux patched with
> Xenomai. I encounter some problems with the taskLib.h emulation. Indeed,
> I’ve got an error concerning WIND_TCB structure. I think that not the
> whole structure is implemented or maybe it’s 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
>  pTcb->pStackBase 
>  … 
> 
> Here are the errors:
>  Code.c:270: warning: implicit declaration of function ‘taskTcb’ 
>  Code.c:270: warning: assignment makes pointer from integer without a cast 
>  Code.c:286: error: ‘WIND_TCB’ has no member named ‘entry’ 
>  Code.c:292: error: ‘WIND_TCB’ has no member named ‘entry’ 
>  Code.c:315: error: ‘WIND_TCB’ has no member named ‘lockCnt’ 
>  Code.c:324: error: ‘WIND_TCB’ has no member named ‘pSignalInfo’ 
>  Code.c:339: error: ‘WIND_TCB’ has no member named ‘pStackBase’ 
>  Code.c:474: warning: assignment makes pointer from integer without a cast 
>  Code.c:492: error: ‘WIND_TCB’ has no member named ‘safeCnt’ 
>  Code.c:493: warning: implicit declaration of function ‘TASK_UNSAFE’ 
>  Code.c:511: warning: implicit declaration of function ‘intLock’ 
>  Code.c:512: error: ‘WIND_TCB’ has no member named ‘safeCnt’ 
>  Code.c:513: error: ‘WIND_TCB’ has no member named ‘status’ 
>  Code.c:513: error: ‘WIND_READY’ undeclared (first use in this
> function) 
>  Code.c:513: error: (Each undeclared identifier is reported only once 
>  Code.c:513: error: for each function it appears in.) 
>  Code.c:513: error: ‘WIND_TCB’ has no member named ‘lockCnt’
>  Code.c:517: warning: implicit declaration of function ‘intUnlock’
>  Code.c:519: error: ‘taskIdCurrent’ undeclared (first use in this
> function)
>  Code.c:522: error: ‘WIND_TCB’ has no member named ‘safeCnt’
>  Code.c:523: error: ‘WIND_TCB’ has no member named ‘lockCnt’
>  Code.c:525: warning: implicit declaration of function ‘Q_FIRST’
>  Code.c:525: error: ‘WIND_TCB’ has no member named ‘safetyQHead’
>  Code.c:525: warning: comparison between pointer and integer
>  Code.c:526: warning: implicit declaration of function ‘windPendQFlush’
>  Code.c:526: error: ‘WIND_TCB’ has no member named ‘safetyQHead’
>  Code.c:532: warning: implicit declaration of function ‘windPendQPut’
>  Code.c:532: error: ‘WIND_TCB’ has no member named ‘safetyQHead’
>  Code.c:553: warning: implicit declaration of function ‘TASK_ID_VERIFY’
>  Code.c:566: warning: implicit declaration of function ‘TASK_SAFE’
>  Code.c:578: error: ‘WIND_TCB’ has no member named ‘pTaskVar’
>  Code.c:579: error: ‘WIND_TCB’ has no member named ‘pTaskVar’
>  Code.c:583: error: ‘WIND_TCB’ has no member named ‘pSignalInfo’
>  Code.c:620: error: ‘WIND_TCB’ has no member named ‘pStackBase’
>  Code.c:638: error: ‘WIND_TCB’ has no member named ‘options’
>  Code.c:644: warning: implicit declaration of function ‘taskRestart’
>  Code.c:654: error: ‘WIND_TCB’ has no member named ‘pTaskVar’
>  Code.c:658: error: invalid application of ‘sizeof’ to incomplete type
> ‘struct sigtcb’
>  Code.c:659: error: ‘_NSIGS’ undeclared (first use in this function)
>  Code.c:660: error: dereferencing pointer to incomplete type
>  Code.c:660: error: dereferencing pointer to incomplete type
>  Code.c:660: error: dereferencing pointer to incomplete type
>  Code.c:667: error: ‘WIND_TCB’ has no member named ‘pSignalInfo’
>  Code.c:876: warning: suggest explicit braces to avoid ambiguous ‘else’
>  Code.c: In function ‘sigTcbPut’:
>  Code.c:994: warning: implicit declaration of function ‘INT_RESTRICT’
>  Code.c:997: error: ‘WIND_TCB’ has no member named ‘pSignalInfo’
>  Code.c:998: error: ‘WIND_TCB’ has no member named ‘pSignalInfo’
>  Code.c:1000: warning: implicit declaration of function
> ‘taskStackAllot’
>  Code.c:1001: error: invalid application of ‘sizeof’ to incomplete type
> ‘struct sigtcb’
>  Code.c:1008: error: ‘WIND_TCB’ has no member named ‘pSignalInfo’
>  Code.c:1009: error: invalid application of ‘sizeof’ to incomplete type
> ‘struct sigtcb’
>  Code.c:1011: error: ‘_NSIGS’ undeclared (first use in this function)
>  Code.c:1012: error: dereferencing pointer to incomplete type
>  Code.c:1012: error: dereferencing pointer to incomplete type 
>  Code.c:1013: error: dereferencing pointer to incomplete type What are my
> issues?
> 
> Thanks in advance 
> 
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.


  reply	other threads:[~2008-05-10 20:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-10 18:47 [Xenomai-help] VxWorks skin problem concerning WIND_TCB structure Matthieu
2008-05-10 20:28 ` Philippe Gerum [this message]
2008-05-10 22:40   ` Gilles Chanteperdrix
2008-05-13  9:16     ` [Xenomai-help] Re: VxWorks skin problem concerning WIND_TCBstructure Matthieu
2008-05-14  9:23       ` [Xenomai-help] " Matthieu
2008-05-14 18:31         ` [Xenomai-help] " Gilles Chanteperdrix
2008-05-15  6:10           ` [Xenomai-help] Re: Re: " Matthieu
2008-05-15  9:28             ` [Xenomai-help] " Gilles Chanteperdrix
2008-05-15 13:12               ` Gilles Chanteperdrix
2008-05-15 13:50                 ` [Xenomai-help] Re: Re: Re: " Matthieu
2008-05-15 14:04                   ` [Xenomai-help] " Gilles Chanteperdrix
2008-05-15 14:06                     ` Gilles Chanteperdrix
2008-05-15 14:14                   ` Philippe Gerum
2008-05-15 14:45                     ` Gilles Chanteperdrix
2008-05-15 15:56                       ` Philippe Gerum
2008-05-15 16:03                         ` Gilles Chanteperdrix
2008-05-15 16:23                           ` Philippe Gerum
2008-05-16  6:30                             ` [Xenomai-help] " Matthieu
2008-05-16  8:49                               ` [Xenomai-help] " Gilles Chanteperdrix
2008-05-16 10:11                                 ` [Xenomai-help] Re: " Matthieu
2008-05-16 16:09                                   ` [Xenomai-help] " Gilles Chanteperdrix
2008-05-20  7:04                                     ` [Xenomai-help] Re: " Matthieu
2008-05-22  9:47                                       ` [Xenomai-help] " Matthieu
2008-05-15  5:32         ` Matthieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4826058B.4090103@domain.hid \
    --to=rpm@xenomai.org \
    --cc=matthieu.connaulte_xenomai@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.