Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch/arm/ep93xx



Ken Hornstein wrote:

> Module Name:  src
> Committed By: kenh
> Date:         Fri Dec 19 04:26:35 UTC 2008
> 
> Modified Files:
> 
>       src/sys/arch/arm/ep93xx: epclk.c
> 
> Log Message:
> 
> Switch back original ARM assembler code used to calculate the number of ticks
> needed to wait in delay().  New code overflowed for large delay values.  
> Broke,
> among other things, the RTC probe for the TS-7200.

Would something like (untested!):

-       remaining = n * TIMER_FREQ / 1000000;
+       remaining = (uint64_t)n * TIMER_FREQ / 1000000;

do instead, forcing 64-bit arithmetic?

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index