1.1 --- a/Hardware/CPU/AMDCPU.cs Mon Oct 18 07:18:14 2010 +0000
1.2 +++ b/Hardware/CPU/AMDCPU.cs Sun Oct 31 22:08:47 2010 +0000
1.3 @@ -50,17 +50,17 @@
1.4 protected uint GetPciAddress(byte function, ushort deviceId) {
1.5
1.6 // assemble the pci address
1.7 - uint address = WinRing0.GetPciAddress(PCI_BUS,
1.8 + uint address = Ring0.GetPciAddress(PCI_BUS,
1.9 (byte)(PCI_BASE_DEVICE + processorIndex), function);
1.10
1.11 // verify that we have the correct bus, device and function
1.12 uint deviceVendor;
1.13 - if (!WinRing0.ReadPciConfigDwordEx(
1.14 + if (!Ring0.ReadPciConfig(
1.15 address, DEVICE_VENDOR_ID_REGISTER, out deviceVendor))
1.16 - return WinRing0.InvalidPciAddress;
1.17 + return Ring0.InvalidPciAddress;
1.18
1.19 if (deviceVendor != (deviceId << 16 | AMD_VENDOR_ID))
1.20 - return WinRing0.InvalidPciAddress;
1.21 + return Ring0.InvalidPciAddress;
1.22
1.23 return address;
1.24 }