Richard Cochran wrote:
> On Thu, Apr 07, 2011 at 10:26:02PM +0200, Gilles Chanteperdrix wrote:
>> On my side, I meant to say, the issue is in the implementation of the
>> I-pipe one-shot timer, the function ipipe_mach_set_dec...
>
> I couldn't find anything wrong there, but I did find this...
>
> In ipipe_tsc_asm.S you have
>
> #ifndef CONFIG_CPU_ENDIAN_BE8
> /* Little endian */
> ldr r0, [r0]
> cmp r2, r0
> adc r1, r3, #0
> #else /* Big endian */
> ldr r1, [r0]
> cmp r3, r1
> adc r0, r2, #0
> #endif /* Big endian */
>
> but my .config has
>
> CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
> CONFIG_CPU_BIG_ENDIAN=y
> # CONFIG_CPU_ENDIAN_BE8 is not set
> CONFIG_CPU_ENDIAN_BE32=y
>
> and the machine really is big endian, so that might make a difference.
Yes, you can try changing the #ifdef. But note also that the big endian
code was never actually tested. So, you probably would be better
compiling a little user-space application to test this tsc code.
the Linksys WRT54GS is an ixp 425, right?.
--
Gilles.
_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main