powerpc mvme5500 clock off by factor of 150

Peter Dufault dufault at hda.com
Mon Mar 7 17:54:44 UTC 2005


> I do not have to test  tests/samples/ticker.  My EPICS applications
> use timeouts on blocking, sleep, etc.  The clock works fine on all my
> application.
>
> Anyway, I have a look at the code :
>     status = rtems_task_wake_after( task_index * 5 * 
> get_ticks_per_second()
> );
>
> Thus the time it takes is subject to the value of task_index.
> That is how he can get the factor of 5 seconds, right ?
> Peter, can you print out what the value of task_index is ?

If its off by 150, not by 5.  But where is the time base and 
decrementer enabled?  The code to do that is in mpc6xx/mmu/mmuAsm.S in 
the call to "L1_caches_enables", but the call to that is commented out 
in mvme5500/startup/bspstart.c.

I tried just setting the bit in bspstart.c at that point but it didn't 
help.

Peter

Peter Dufault
HD Associates, Inc.




More information about the users mailing list