Subject: Re: CVS commit: src/sys/arch
To: Joerg Sonnenberger <joerg@netbsd.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 10/26/2007 14:28:52
On Fri, Oct 26, 2007 at 01:24:47PM +0000, Joerg Sonnenberger wrote:
> Log Message:
> Match delay/DELAY on x86 with delay(9). It takes an unsigned int as
> argument. Use this and replace the inline assembly (mul + div using the
> 64bit intermediate result) with normal 32bit multiplication and
> division. The compiler can turn the division into a multiplication and
> shift, making it even cheaper then the original assembly. For extreme
> long delays, just use 64bit arithmetic.
A DIAGNOSTIC kernel should probably panic on a very long delay..
Andrew