1.1 --- a/Hardware/CPU/AMD0FCPU.cs Mon Apr 26 18:38:31 2010 +0000
1.2 +++ b/Hardware/CPU/AMD0FCPU.cs Mon Apr 26 18:51:22 2010 +0000
1.3 @@ -48,6 +48,7 @@
1.4 private string name;
1.5 private Image icon;
1.6
1.7 + private int processorIndex;
1.8 private uint pciAddress;
1.9
1.10 private Sensor[] coreTemperatures;
1.11 @@ -63,8 +64,9 @@
1.12 private const byte THERM_SENSE_CORE_SEL_CPU0 = 0x4;
1.13 private const byte THERM_SENSE_CORE_SEL_CPU1 = 0x0;
1.14
1.15 - public AMD0FCPU(CPUID[][] cpuid) {
1.16 + public AMD0FCPU(int processorIndex, CPUID[][] cpuid) {
1.17
1.18 + this.processorIndex = processorIndex;
1.19 this.name = cpuid[0][0].Name;
1.20 this.icon = Utilities.EmbeddedResources.GetImage("cpu.png");
1.21
1.22 @@ -110,7 +112,7 @@
1.23 }
1.24
1.25 pciAddress = WinRing0.FindPciDeviceById(PCI_AMD_VENDOR_ID,
1.26 - PCI_AMD_0FH_MISCELLANEOUS_DEVICE_ID, 0);
1.27 + PCI_AMD_0FH_MISCELLANEOUS_DEVICE_ID, (byte)processorIndex);
1.28
1.29 Update();
1.30 }
1.31 @@ -120,7 +122,7 @@
1.32 }
1.33
1.34 public string Identifier {
1.35 - get { return "/amdcpu/0"; }
1.36 + get { return "/amdcpu/" + processorIndex; }
1.37 }
1.38
1.39 public Image Icon {