Re: Linux Post codes during runtime, possibly OT

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Fri Jan 26 2001 - 10:31:03 EST


Mark Hahn wrote:
> > #ifdef SLOW_IO_BY_JUMPING
> > #define __SLOW_DOWN_IO "\njmp 1f\n1:\tjmp 1f\n1:"
> > #else
> > -#define __SLOW_DOWN_IO "\noutb %%al,$0x80"
> > +#define __SLOW_DOWN_IO "\noutb %%al,$0x19"
>
> this is nutty: why can't udelay be used here? empirical measurements
> in the thread show the delay is O(2us).

Does anyone remember where __SLOW_DOWN_IO is needed any more?

udelay() makes sense. Modern drivers use small udelays themselves to
confirm to chip specs.

Some ISA drivers appear to use outb_p "just to be on the safe side", no
idea if it's appropriate or not. Some even mix outb and outb_p based on
educated guesses. I know, I've written such code :-)

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:25 EST