All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Steven Seeger <sseeger@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] shadow task and rt_task_self()
Date: Fri, 23 Jan 2009 21:06:28 +0100	[thread overview]
Message-ID: <497A2344.8060605@domain.hid> (raw)
In-Reply-To: <51CAD0CE1504444DBE77CBBE51A0135D5908A5@domain.hid>

Steven Seeger wrote:
> Gilles,
> 
> Attached is my simple test that repeats this problem.
> 
> Output is:
> 
> 0
> 0 0
> 
> This is using latest xenomai trunk.
> 

Ok. Try this:

Index: src/skins/native/task.c
===================================================================
--- src/skins/native/task.c	(revision 4570)
+++ src/skins/native/task.c	(working copy)
@@ -210,8 +210,12 @@ int rt_task_shadow(RT_TASK *task, const
 	err = XENOMAI_SKINCALL2(__native_muxid, __native_task_create, &bulk,
 				NULL);

-	if (!err)
+	if (!err) {
+#ifdef HAVE___THREAD
+		__native_self = *task;
+#endif /* HAVE___THREAD */
 		xeno_set_current();
+	}

 	return err;
 }


-- 
					    Gilles.


  reply	other threads:[~2009-01-23 20:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23 19:04 [Xenomai-help] shadow task and rt_task_self() Steven Seeger
2009-01-23 19:24 ` Gilles Chanteperdrix
2009-01-23 19:43   ` Steven Seeger
2009-01-23 19:46     ` Gilles Chanteperdrix
2009-01-23 19:50       ` Steven Seeger
2009-01-23 20:06         ` Gilles Chanteperdrix [this message]
2009-01-23 20:11           ` Steven Seeger

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=497A2344.8060605@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sseeger@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.