Clock not running (was Re: RTEMS4.7 and its tool chain (Re: powerpc mvme5500 clock off by factor of 150))
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Wed Mar 9 14:24:18 UTC 2005
Till,
Could you please educate us on what the & does? It looks like
there may be more to fix. :(
--joel
Peter Dufault wrote:
>
> On Mar 9, 2005, at 7:15 AM, Joel Sherrill <joel at OARcorp.com> wrote:
>
>>
>> cpukit/score/cpu/powerpc/rtems/score/cpu.h has these:
>>
>> #define PPC_Set_decrementer( _clicks ) \
>> do { \
>> asm volatile( "mtdec %0" : : "r" ((_clicks)) ); \
>> } while (0)
>>
>> #define PPC_Get_decrementer( _clicks ) \
>> asm volatile( "mfdec %0" : "=r" (_clicks) )
>>
>>
>> Note that there is no & in the get. Even the get and set timebase
>> register don't have them. Is this right?
>>
>
> I had checked that they matched before. It fixed my problem. I don't
> know if it is a gcc "feature" in 4.0 or what, and today I don't have
> time to think about it. I've been up since Till found that problem last
> night getting my application running, and I'm planning to try things out
> at the customer site in a few hours.
>
> Again, Till gets my "Hero of the Day" award.
>
> Peter
>
> Peter Dufault
> HD Associates, Inc.
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list