All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] pSOS+ simple example returns error code -14
Date: Mon, 20 Sep 2010 09:42:38 +0200	[thread overview]
Message-ID: <4C97106E.7060602@domain.hid> (raw)
In-Reply-To: <1284960227.4114.11.camel@domain.hid>

Philippe Gerum wrote:
> On Sun, 2010-09-19 at 16:04 +0100, ronny meeus wrote:
>> Hello
>>
>> I'm using xenomai in a qemu setup.
>> My final goal is to use xenomai to port extisting pSOS application to
>> the linux platform.
>>
>> The first step I did was building a kernel with the pSOS skin enabled.
>> These traces are generated at kernel startup:
>> [    0.212363] I-pipe: Domain Xenomai registered.
>> [    0.212363] Xenomai: hal/i386 started.
>> [    0.212363] Xenomai: scheduling class idle registered.
>> [    0.212363] Xenomai: scheduling class rt registered.
>> [    0.246987] Xenomai: real-time nucleus v2.5.4 (Sleep Walk) loaded.
>> [    0.246987] Xenomai: debug mode enabled.
>> [    0.274658] Xenomai: starting native API services.
>> [    0.274658] Xenomai: starting POSIX services.
>> [    0.296357] Xenomai: starting RTDM services.
>> [    0.296357] Xenomai: registered exported object RN#0 (regions)
>> [    0.296357] Xenomai: starting pSOS+ services.
>> [    0.305601] HugeTLB registered 4 MB page size, pre-allocated 0
>> pages
>>
>> This is the example application:
>>
>> #include <psos+/psos.h>
>>
>> void task2_func(u_long a,u_long b,u_long c,u_long d)
>> {
>>         while (1) {
>>                 tm_wkafter(1000);
>>         }
>> }
>>
>> int main(int argc, char **argv)
>> {
>>         unsigned long tid;
>>         unsigned long args[4] = {0,0,0,0};
>>
>>         t_create("TEST",10,160000,160000,0,&tid);
>>         t_start(tid,0,task2_func,args);
>>         while (1) {
>>                 sleep(100);
>>         }
>> }
> 
> I'm unsure whether the code above is actually the one which issues the
> output mentioned below. I see no t_shadow call, and no status printout
> there.

Maybe the auto-shadowing of the main thread?

-- 
                                                                Gilles.


  reply	other threads:[~2010-09-20  7:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-19 15:04 [Xenomai-help] pSOS+ simple example returns error code -14 ronny meeus
2010-09-20  5:23 ` Philippe Gerum
2010-09-20  7:42   ` Gilles Chanteperdrix [this message]
2010-09-20  7:54     ` Philippe Gerum
2010-09-20 18:46       ` ronny meeus

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=4C97106E.7060602@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=rpm@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.