lkml.org 
[lkml]   [1998]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: New PCI code for Alpha
> Oh yes, the SMP global cli thing.  Ok, I'll change it to __cli, since
> that's what I'm really wanting anyway.

Is this SMP safe? What if multiple CPUs attempt to access the PCI config
registers at once?

> > 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.

Yes, it could have been more elegant, but it's IMHO much nicer and easier
to do it this way than by traversing the bus trees as we do now.

Have a nice fortnight
--
Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"DEC = Delay in Error Correction"

-
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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:1.913 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site