From SONE

This commit is contained in:
Ronald G. Minnich 2003-08-05 19:33:34 +00:00
commit 26a7ae7277

View file

@ -50,7 +50,7 @@ pcibios(
unsigned short func = (unsigned short) eax;
int retval = -1;
unsigned short devid, vendorid, devfn;
int devindex;
short devindex; /* Use short to get rid of gabage in upper half of 32-bit register */
unsigned char bus;
struct pci_dev *dev;
@ -76,7 +76,8 @@ pcibios(
*peax = 0;
// busnum is an unsigned char;
// devfn is an int, so we mask it off.
busdevfn = dev->bus->secondary | (dev->devfn & 0xff);
busdevfn = (dev->bus->secondary << 8)
| (dev->devfn & 0xff);
printk_debug("0x%x: return 0x%x\n", func, busdevfn);
*pebx = busdevfn;
retval = 0;