[U-Boot] Very slow fatload on bcm2835

Marek Vasut marex at denx.de
Thu Jun 18 14:34:49 CEST 2015


On Wednesday, June 17, 2015 at 03:44:41 PM, Jeroen Hofstee wrote:
> Hello Marek,
> 
> -    while (get_timer(bcm_host->last_write) < bcm_host->twoticks_delay)
> +    while (timer_get_us() < bcm_host->last_write +
> bcm_host->twoticks_delay)
>           ;
> 
> Can this counter / the right side of the comparison not overflow?

Yes it can -- what do you suggest to make it overflow-safe in this
particular case ?

Best regards,
Marek Vasut


More information about the U-Boot mailing list