Re: New PCI code for Alpha

Richard Henderson (rth@cygnus.com)
Mon, 24 Aug 1998 10:00:48 -0700


On Mon, Aug 24, 1998 at 01:01:31AM +0200, Martin Mares wrote:
> > As I read the code it doesn't have to do with preemption so much as
> > machine-check control. So, no, I don't think I'll be changing it.
>
> I didn't study the implementation of global cli() on Alpha, but on Intel
> it just deadlocks when you try to call it from an interrupt. Several drivers
> need to read configuration registers from interrupt.

Oh yes, the SMP global cli thing. Ok, I'll change it to __cli, since
that's what I'm really wanting anyway.

> I think you could do it this way:
>
> last_bus = 0;
> for each bus controller {
> map busses last_bus to 0xff to current controller
> last_bus = pci_scan_bus(...) + 1
> }

I'll give it a look and see, but just about anything is going to
be fairly ugly.

r~

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