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: Sat, 27 Oct 2007 17:02:14 +0200 [thread overview]
Message-ID: <472352F6.4000409@domain.hid> (raw)
In-Reply-To: <0B45E93C5FF65740AEAE690BF3848B7A4AB267@domain.hid>
Fillod Stephane wrote:
> Philippe Gerum wrote:
>> Fillod Stephane wrote:
>>> For the legacy RTAI application to load, the attached patch was
>>> necessary.
>>> The patch against ksrc/skins/rtai/shm.c is somewhat defeating the
>>> purpose
>>> of a lower XNCORE_PAGE_SIZE, so a better fix might be expected.
>>>
>> This one should prevent -EINVAL from being returned. Hopefully.
>
> Nope, it doesn't :-(
> Most probably because still (hdrsize + 2 * pagesize > heapsize).
>
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)
--
Philippe.
next prev parent reply other threads:[~2007-10-27 15:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 18:10 [Xenomai-core] Xenomai v2.4-rc4: freeze with RTAI skin, fine with other skins Fillod Stephane
2007-10-27 15:02 ` Philippe Gerum [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-10-30 15:07 Fillod Stephane
2007-10-30 15:17 ` 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=472352F6.4000409@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.