From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Trying to get Xenomai on P1010RDB
Date: Fri, 17 Aug 2012 18:09:56 +0200 [thread overview]
Message-ID: <502E6CD4.8080407@xenomai.org> (raw)
In-Reply-To: <502E6523.8050007@xenomai.org>
On 08/17/2012 05:37 PM, Philippe Gerum wrote:
> On 08/17/2012 05:11 PM, Gilles Chanteperdrix wrote:
>> On 08/17/2012 05:02 PM, Philippe Gerum wrote:
>>> On 08/17/2012 04:41 PM, Gilles Chanteperdrix wrote:
>>>> On 08/17/2012 04:24 PM, Charles Retailleau wrote:
>>>>> Thanks Lennart that was very useful, it now works.
>>>>> Here is the little patch I made, yet I couldn't find a switch to force
>>>>> it for core e500/e500xx only...
>>>>>
>>>>>
>>>>> --- ./xenomai-2.6.1.orig/include/asm-powerpc/syscall.h 2011-11-09
>>>>> 13:21:36.000000000 +0100
>>>>> +++ ./xenomai-2.6.1.mine/./include/asm-powerpc/syscall.h 2012-08-17
>>>>> 15:47:28.387435909 +0200
>>>>> @@ -167,9 +167,9 @@
>>>>> } u;
>>>>> unsigned long __tbu;
>>>>>
>>>>> - __asm__ __volatile__("1: mftbu %0\n"
>>>>> - "mftb %1\n"
>>>>> - "mftbu %2\n"
>>>>> + __asm__ __volatile__("1: mfspr %0,269\n"
>>>>> + "mfspr %1,268\n"
>>>>> + "mfspr %2,269\n"
>>>>> "cmpw %2,%0\n"
>>>>> "bne- 1b\n":"=r"(u.v[0]),
>>>>> "=r"(u.v[1]), "=r"(__tbu));
>>>>> Thanks to all for your help
>>>>> Charles,
>>>>
>>>> If I understand correctly, this patch breaks old powerpcs. So, do we
>>>> have a compilation constant allowing to know whether we are compiling
>>>> for an old or new powerpc?
>>>>
>>>
>>> For the sake of completeness, we could condition mftb to CONFIG_POWER3,
>>> all others we care for (i.e. >= ISA 2.01) do support mfspr 268.
>>>
>>
>> is CONFIG_POWER3 available when configuring user-space support?
>>
>
> No, but actually, I never ported Xenomai to power3 and will likely never
> do this. It's the early 64bit server architecture; we won't officially
> support any 64bit platform which does not comply with ISA 2.04 at least
> anyway. Best effort would be to depend on a gcc define built-in for
> mcpu=power3 if any.
>
Ok. According to ppc64-linux-gcc from ELDK 4.2, all architectures above
power4 have _ARCH_PWR4 defined.
--
Gilles.
next prev parent reply other threads:[~2012-08-17 16:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 14:30 [Xenomai] Trying to get Xenomai on P1010RDB Charles Retailleau
2012-08-16 14:46 ` Lennart Sorensen
2012-08-16 15:14 ` Wolfgang Grandegger
2012-08-17 14:24 ` Charles Retailleau
2012-08-17 14:41 ` Gilles Chanteperdrix
2012-08-17 15:02 ` Philippe Gerum
2012-08-17 15:11 ` Gilles Chanteperdrix
2012-08-17 15:37 ` Philippe Gerum
2012-08-17 16:09 ` Gilles Chanteperdrix [this message]
2012-08-17 18:25 ` 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=502E6CD4.8080407@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=rpm@xenomai.org \
--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.