MIME-Version: 1.0 Date: Thu, 15 May 2008 07:32:41 +0200 From: Matthieu In-Reply-To: <37a50be5e303037c147613f6a84341e0@domain.hid> References: <37a50be5e303037c147613f6a84341e0@domain.hid> Message-ID: <75d0df3051f90efb742000fdb9290bec@domain.hid> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: [Xenomai-help] =?utf-8?q?_Re=3A___Re=3A___Re=3A__VxWorks_skin_pro?= =?utf-8?q?blem_concerning_WIND=5FTCBstructure?= Reply-To: matthieu.connaulte_xenomai@domain.hid List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org On Wed, 14 May 2008 11:23:13 +0200, Matthieu wrote: >=20 >=20 > On Tue, 13 May 2008 11:16:56 +0200, Matthieu > wrote: >> On Sun, 11 May 2008 00:40:07 +0200, Gilles Chanteperdrix >> 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 Xenom= ai >>> > > 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 other= s >> (or >>> their >>> > meaning) fairly easily (e.g. pStackBase and status). >>> > >>> > > Here are extracts of Code.c: >>> > > #include >>> > > 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 ther= e >> are >> different definitions of WIND_TCB while the compilation occur in kerne= l >> 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 >> >> >=20 > 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 ? >=20 > Matthieu Does a Xenomai Task Control Block exist ? Matthieu >=20 >> >> _______________________________________________ >> Xenomai-help mailing list >> Xenomai-help@domain.hid >> https://mail.gna.org/listinfo/xenomai-help >=20 >=20 >=20 > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help