--- hw/xfree86/os-support/linux/lnx_pci.c.orig 2005-08-24 14:31:18.000000000 +0000 +++ hw/xfree86/os-support/linux/lnx_pci.c 2005-08-24 14:31:28.000000000 +0000 @@ -206,15 +206,13 @@ * memory attributes */ if (ndx == 6) - savePtr = (0xFFFFFFF0) & - pciReadLong(tag, PCI_CMD_BIOS_REG); + savePtr = pciReadLong(tag, PCI_CMD_BIOS_REG); else /* this the ROM bar */ - savePtr = (0xFFFFFFF0) & - pciReadLong(tag, PCI_CMD_BASE_REG + (0x4 * ndx)); + savePtr = pciReadLong(tag, PCI_CMD_BASE_REG + (0x4 * ndx)); /* find the index of the incoming base */ if (base >= savePtr && base <= (savePtr + size[ndx])) { fclose(file); - return ( ~(0xFUL) & (offset[ndx] + (base - savePtr))); + return (offset[ndx] + (base - savePtr)); } } }