From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Berruer Sébastien" <sebastien.berruer@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RE : Native message queue and synchronisation
Date: Fri, 21 Aug 2009 11:02:04 +0200 [thread overview]
Message-ID: <4A8E628C.8010001@domain.hid> (raw)
In-Reply-To: <EB48F2CADC239E44A8598CC0B0571102E4A9C2@domain.hid>
Berruer Sébastien wrote:
> Hi,
>
>>> I include my code and hope you can point me out what I am doing wrong.
>>> I'm running a kernel 2.6.28 with Xenomai 2.4.8 on an ARM architecture
>>> (PXA255).
>>
>>Could you try Xenomai 2.4.9?
>
>
>
> I did it yesterday with the version 2.4.9. But, I still issue the same
> problem with the same code.
>
> I recently pointed out another problem: during the deletion of a task
> descriptor, I receive the error value -3 (-ESRCH). I quickly checked it
> and, that's right, she didn't appear in the /proc/registry.
>
> May it be a registration problem for the queue, too?
Ok. Please keep 2.4.8. I did not try to reproduce the bug yet, but in the
mean time, could you try the following patch?
diff --git a/ksrc/skins/native/queue.c b/ksrc/skins/native/queue.c
index 8b7c43e..9184da6 100644
--- a/ksrc/skins/native/queue.c
+++ b/ksrc/skins/native/queue.c
@@ -228,7 +228,8 @@ int rt_queue_create(RT_QUEUE *q,
err = xnheap_init_mapped(&q->bufpool,
poolsize,
- (mode & Q_DMA) ? GFP_DMA : 0);
+ XNARCH_SHARED_HEAP_FLAGS |
+ ((mode & Q_DMA) ? GFP_DMA : 0));
if (err)
return err;
--
Gilles
next prev parent reply other threads:[~2009-08-21 9:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-17 15:03 [Xenomai-help] Native message queue and synchronisation Berruer Sébastien
2009-08-19 16:09 ` Gilles Chanteperdrix
2009-08-20 7:13 ` [Xenomai-help] RE : " Berruer Sébastien
2009-08-21 9:02 ` Gilles Chanteperdrix [this message]
2009-08-21 14:13 ` Berruer Sébastien
2009-08-21 14:18 ` Gilles Chanteperdrix
2009-08-21 22:23 ` Gilles Chanteperdrix
2009-08-24 9:17 ` Berruer Sébastien
2009-08-24 9:36 ` Gilles Chanteperdrix
2009-08-25 7:26 ` Berruer Sébastien
2009-08-25 8:12 ` Gilles Chanteperdrix
2009-08-25 14:53 ` [Xenomai-help] RE : " Berruer Sébastien
2009-08-25 15:19 ` Gilles Chanteperdrix
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=4A8E628C.8010001@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=sebastien.berruer@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.