Subject: Re: lack of decent delay (Re: CVS commit: syssrc)
To: Chris Gilbert <chris@paradox.demon.co.uk>
From: Ben Harris <bjh21@netbsd.org>
List: port-arm32
Date: 04/11/2001 11:32:55
On Wed, 11 Apr 2001, Chris Gilbert wrote:
> > Log Message:
> > Apply a bandage to delay() so that it takes a more suitable time on
> > StrongARM Risc PCs. It really should be replaced entirely, but I've got
> > more important bugs to fix.
>
> Would using something similiar to the delay mechanism from arm26/iobus/ioc.c
> work? Or are you thinking of some mechanism that uses the 2nd iomd timer
> (which I don't think we use for anything currently) Using the arm26 method
> would actually be more portable to the other arm32 architectures.
As Richard points out, the second timer should be reserved for
statclock(). The arm26 delay() should be a reasonable replacement for the
current arm32 one if anyone feels like working on that.
--
Ben Harris <bjh21@netbsd.org>
Portmaster, NetBSD/arm26 <URL:http://www.netbsd.org/Ports/arm26/>