From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] VxWorks skin problem concerning WIND_TCBstructure
Date: Thu, 15 May 2008 18:23:30 +0200 [thread overview]
Message-ID: <482C6382.5010604@domain.hid> (raw)
In-Reply-To: <2ff1a98a0805150903t48976a1i17c5112c2ae8bb10@domain.hid>
Gilles Chanteperdrix wrote:
> On Thu, May 15, 2008 at 5:56 PM, Philippe Gerum <rpm@xenomai.org> wrote:
>> Gilles Chanteperdrix wrote:
>>> On Thu, May 15, 2008 at 4:14 PM, Philippe Gerum <rpm@xenomai.org> wrote:
>>>> Matthieu wrote:
>>>>> On Thu, 15 May 2008 15:12:32 +0200, "Gilles Chanteperdrix"
>>>>> <gilles.chanteperdrix@xenomai.org> wrote:
>>>>>> On Thu, May 15, 2008 at 11:28 AM, Gilles Chanteperdrix
>>>>>> <gilles.chanteperdrix@xenomai.org> wrote:
>>>>>>> On Thu, May 15, 2008 at 8:10 AM, Matthieu
>>>>>>> <matthieu.connaulte_xenomai@domain.hid> wrote:
>>>>>>> I think
>>>>>>>> that VxWorks Task Control Block ,implemeted by WIND RIVER, is keeping
>>>>>> the
>>>>>>>> context in hard real-time. That's why I would like to know if there are
>>>>>>>> other possibilities ?
>>>>>>> Yes, there are possibilities: fix your code not to use such internal
>>>>>>> data as the WIND_TCB members.
>>>>>> Even VxWorks documentation considers accessing WIND_TCB directly as a
>>>>>> bad practice. See the doc of taskInfoGet at:
>>>>>>
>>>>>>
>>>>> http://spacegrant.colorado.edu/~dixonc/vxworks/docs/vxworks/ref/taskShow.html
>>>>>> So, what I would agree we can do is implement taskInfoGet.
>>>>>>
>>>>>> --
>>>>>> Gilles
>>>>> Well, what a great issue for me...
>>>>>
>>>> The attached patch provides taskInfoGet(). Whether it does provide everything
>>>> you need from the task information block is another issue, but at least, you
>>>> would have the proper infrastructure to add the missing bits to.
>>> You have been fast.
>> I cheated: this code has been floating around on my disk for some time now.
>>
>> One minor concern. The definition of TASK_DESC in
>>> vxworks headers seems to be:
>>>
>>> typedef struct /* TASK_DESC - information structure */
>>> {
>>> int td_id; /* task id */
>>> char * td_name; /* name of task */
>>> int td_priority; /* task priority */
>>> int td_status; /* task status */
>>> int td_options; /* task option bits (see below) */
>>> FUNCPTR td_entry; /* original entry point of task */
>>> char * td_sp; /* saved stack pointer */
>>> char * td_pStackBase; /* the bottom of the stack */
>>> char * td_pStackLimit; /* the effective end of the stack */
>>> char * td_pStackEnd; /* the actual end of the stack */
>>> int td_stackSize; /* size of stack in bytes */
>>> int td_stackCurrent;/* current stack usage in bytes */
>>> int td_stackHigh; /* maximum stack usage in bytes */
>>> int td_stackMargin; /* current stack margin in bytes */
>>> int td_errorStatus; /* most recent task error status */
>>> int td_delay; /* delay/timeout ticks */
>>> } TASK_DESC;
>>>
>>>
>> My concern is that this layout and naming might be arch-dependent and/or even
>> WIND version dependent.
>>
>> Could any ppc and arm people with access to Tornado headers confirm/refute this
>> assumption? TIA,
>
> Found it here:
> http://rts-lab.eas.asu.edu/NSF_EI/courses/cse591_RTES/document/reference_document/vxworks_taskLib.h
>
The arch-dependent part of this "generic kernel interface header" (eh...) does
not look like including the TASK_DESC stuff and moreover, this seems to be based
on VxWorks 5.4 which is our reference version too, so I agree, we should
probably comply with their naming as well.
--
Philippe.
next prev parent reply other threads:[~2008-05-15 16:23 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
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 [this message]
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=482C6382.5010604@domain.hid \
--to=rpm@xenomai.org \
--cc=gilles.chanteperdrix@xenomai.org \
--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.