diff -u os-support/bus/linuxPci.c os-support/bus/linuxPci.c --- os-support/bus/linuxPci.c 20 Apr 2005 18:48:22 -0000 +++ os-support/bus/linuxPci.c 21 Apr 2005 20:00:01 -0000 @@ -423,6 +423,9 @@ if (pPCI && (result = PCI_DOM_FROM_BUS(pPCI->busnum))) return result; + if (pPCI->fakeDevice) + return 1; /* Domain 0 is reserved */ + if ((fd = linuxPciOpenFile(pPCI ? pPCI->tag : 0,FALSE)) < 0) return 0; diff -u os-support/shared/ia64Pci.c os-support/shared/ia64Pci.c --- os-support/shared/ia64Pci.c 20 Apr 2005 18:48:22 -0000 +++ os-support/shared/ia64Pci.c 21 Apr 2005 20:00:01 -0000 @@ -67,7 +67,7 @@ int fd = ia64_port_to_fd(port); if (!fd) { - _outb(port & 0xffff, val); + _outb(val, port & 0xffff); goto out; } if (lseek(fd, port & 0xffff, SEEK_SET) == -1) { @@ -87,7 +87,7 @@ int fd = ia64_port_to_fd(port); if (!fd) { - _outw(port & 0xffff, val); + _outw(val, port & 0xffff); goto out; } if (lseek(fd, port & 0xffff, SEEK_SET) == -1) { @@ -107,7 +107,7 @@ int fd = ia64_port_to_fd(port); if (!fd) { - _outl(port & 0xffff, val); + _outl(val, port & 0xffff); goto out; } if (lseek(fd, port & 0xffff, SEEK_SET) == -1) {