From: Philippe Gerum <rpm@xenomai.org>
To: niklaus.giger@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] SOLO: Too limited priorities for vxWorks threads
Date: Sun, 18 May 2008 13:47:09 +0200 [thread overview]
Message-ID: <4830173D.2010904@domain.hid> (raw)
In-Reply-To: <200805181142.13485.niklaus.giger@domain.hid>
Niklaus Giger wrote:
> Hi
>
> I just tried to get a sample test program to run under Xenomai-SOLO
> and run into this panic message:
> Xenomai/SOLO: current implementation restricts VxWorkspriority levels to range [-2..0]
> looking at the code I found at taskLib.c
>> 263 {
>> 264 if (wind_prio < 0 || wind_prio > 255) /* In theory. */
>> 265 return S_taskLib_ILLEGAL_PRIORITY;
>> 266
>> 267 if (wind_prio >= threadobj_max_prio - 1) /* In practice. */
>> 268 panic("current implementation restricts VxWorks"
>> 269 "priority levels to range [%d..0]",
>> 270 threadobj_max_prio - 2);
>> 271 return OK;
> Therefore I seem to have only the option of priority 0 which is way too limited.
>
No, this means there is a problem. threadobj_max_prio should be 99.
> I took a look at vxworks/testsuite/task-1.c and found that it spawns a task
> with priority 70. Calling "make check" compiled a few more files but did not run
> any checks.
>
> After calling make in vxworks/testsuite and callling ./task-1 I got the same
> error.
>
> I am running the (unpatched) Debian kernel 2.6.24-1-686, as I just wanted to
> run some test without requiring any realtime behaviour. Reading
> http://www.denx.de/cgi-bin/gitweb.cgi?p=xenomai-solo.git;a=blob;f=README
> I found the sentence "SOLO may also be used with non-PREEMPT_RT kernels, likely
> for basic debugging tasks which do not involve strict real-time requirements"
> and concluded therefore that I should be able to use for my test a "normal"
> kernel.
>
> As glibc I use the Debian lenny version 2.7-10.
>
> Best regards
>
> Niklaus Giger
>
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
>
--
Philippe.
prev parent reply other threads:[~2008-05-18 11:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-18 9:42 [Xenomai-core] SOLO: Too limited priorities for vxWorks threads Niklaus Giger
2008-05-18 11:45 ` Philippe Gerum
2008-05-18 12:33 ` Niklaus Giger
2008-05-18 14:18 ` Philippe Gerum
2008-05-18 14:21 ` Philippe Gerum
2008-05-18 11:47 ` Philippe Gerum [this message]
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=4830173D.2010904@domain.hid \
--to=rpm@xenomai.org \
--cc=niklaus.giger@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.