From: Philippe Gerum <rpm@xenomai.org>
To: Fillod Stephane <stephane.fillod@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Xenomai v2.4-rc4: freeze with RTAI skin, fine with other skins
Date: Tue, 30 Oct 2007 16:17:10 +0100 [thread overview]
Message-ID: <47274AF6.9090707@domain.hid> (raw)
In-Reply-To: <0B45E93C5FF65740AEAE690BF3848B7A4AB26C@rennsmail04.eu.thmulti.com>
Fillod Stephane wrote:
> Philippe Gerum wrote:
> [...]
>> This rounding was missing too. We need the previous one for kernel
> local
>> heaps, and the one below to meet the stricter PAGE_SIZE constraint for
>> shareable heaps.
>>
>> --- ksrc/nucleus/heap.c (revision 3095)
>> +++ ksrc/nucleus/heap.c (working copy)
>> @@ -1103,7 +1103,7 @@
>> spl_t s;
>> int err;
>>
>> - heapsize = PAGE_ALIGN(heapsize);
>> + heapsize = xnheap_rounded_size(heapsize, PAGE_SIZE);
>> heapbase = __alloc_and_reserve_heap(heapsize, memflags);
>>
>> if (!heapbase)
>
> Nope, still doesn't in -rc5 :-(
> Most probably because it should be at least _2_ times the page size.
>
Damnit. Half of the logic is indeed missing. Ok, will re-re-re-fix, ...
the fix.
>
> The following patch missed the -rc5, can it please make it for -rc6?
>
Yes. Thanks.
> --- ksrc/skins/rtai/task.c 29 Oct 2007 08:45:27 -0000 1.3
> +++ ksrc/skins/rtai/task.c 30 Oct 2007 15:04:08 -0000
> @@ -139,6 +139,9 @@
> task->body = body;
> task->sigfn = sigfn;
>
> + if (xnarch_cpus_empty(task->affinity))
> + task->affinity = XNPOD_ALL_CPUS;
> +
> xnlock_get_irqsave(&nklock, s);
>
> err = xnpod_start_thread(&task->thread_base, XNSUSP, /*
> Suspend on startup. */
>
--
Philippe.
next prev parent reply other threads:[~2007-10-30 15:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 15:07 [Xenomai-core] Xenomai v2.4-rc4: freeze with RTAI skin, fine with other skins Fillod Stephane
2007-10-30 15:17 ` Philippe Gerum [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-10-25 18:10 Fillod Stephane
2007-10-27 15:02 ` Philippe Gerum
2007-10-22 9:45 Fillod Stephane
2007-10-22 10:08 ` Philippe Gerum
2007-10-22 12:15 ` Gilles Chanteperdrix
2007-10-22 9:16 Fillod Stephane
2007-10-22 9:29 ` Gilles Chanteperdrix
2007-10-22 9:53 ` Philippe Gerum
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=47274AF6.9090707@domain.hid \
--to=rpm@xenomai.org \
--cc=stephane.fillod@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.