[Freemint-list] Broken udelay() for m68000

David Gálvez dgalvez75 at gmail.com
Sun Oct 15 21:36:49 MSD 2017


2017-10-15 12:31 GMT+02:00 Miro Kropáček <miro.kropacek at gmail.com>:
>> Here is the thread with the discussion when the Coldfire code was
>> added. just in case it helps:
>>
>> https://mikro.naprvyraz.sk/mint/201404/msg00044.html
>
> Actually, is there any reason why we can't use your formula:
>
> __delay((((usecs * HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6);
>
> also for m68000 instead of the lame:
>
> __delay(usecs);
>
> ?

I don't have an accurate answer, but it looks like Linux uses it for
the simpler 68000 processors too.



More information about the Freemint-list mailing list