From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Mode switch when using RT heap on ARM
Date: Mon, 17 Nov 2008 14:41:31 +0100 [thread overview]
Message-ID: <4921748B.7050706@domain.hid> (raw)
In-Reply-To: <491C8AE3.5080109@domain.hid>
Wolfgang Grandegger wrote:
> Gilles Chanteperdrix wrote:
>> Wolfgang Grandegger wrote:
>> + ptr = (int *)(block + size - sizeof(int));
>>
>> This is not guaranteed to be aligned on an int. Could you try:
>>
>> ptr = (int *)(((unsigned long) block + size - sizeof(int)) & ~3);
>
> With aligned accesses rtheap reports just3 mode switches in both modes,
> 0 and H_NONCACHED. But already one mode switch is too much!
This should be solved by the current versions of branch v2.4.x and trunk.
--
Gilles.
next prev parent reply other threads:[~2008-11-17 13:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-10 9:58 [Xenomai-help] Mode switch when using RT heap on ARM Wolfgang Grandegger
2008-11-10 11:42 ` Gilles Chanteperdrix
2008-11-10 12:32 ` Wolfgang Grandegger
2008-11-10 12:35 ` Wolfgang Grandegger
[not found] ` <c54f288fee2b8a5ee68a00c27056c6ed.squirrel@domain.hid>
2008-11-10 18:55 ` Wolfgang Grandegger
2008-11-10 19:02 ` Gilles Chanteperdrix
2008-11-10 20:05 ` Wolfgang Grandegger
2008-11-11 22:46 ` Gilles Chanteperdrix
2008-11-12 8:55 ` Wolfgang Grandegger
2008-11-12 9:12 ` Philippe Gerum
2008-11-12 10:24 ` Gilles Chanteperdrix
2008-11-12 10:50 ` Wolfgang Grandegger
2008-11-12 11:12 ` Philippe Gerum
2008-11-12 11:20 ` Wolfgang Grandegger
2008-11-13 17:57 ` Gilles Chanteperdrix
2008-11-13 18:27 ` Wolfgang Grandegger
2008-11-13 18:23 ` Gilles Chanteperdrix
2008-11-13 18:39 ` Wolfgang Grandegger
2008-11-13 18:15 ` Gilles Chanteperdrix
2008-11-13 20:15 ` Wolfgang Grandegger
2008-11-14 8:22 ` Gilles Chanteperdrix
2008-11-14 9:46 ` Wolfgang Grandegger
2008-11-14 9:45 ` Gilles Chanteperdrix
2008-11-17 13:41 ` Gilles Chanteperdrix [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-11-11 11:24 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=4921748B.7050706@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=wg@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.