Hardware/CPU/AMD0FCPU.cs
changeset 236 763675f19ff4
parent 201 958e9fe8afdf
child 238 bddc6e01840a
     1.1 --- a/Hardware/CPU/AMD0FCPU.cs	Mon Oct 18 07:18:14 2010 +0000
     1.2 +++ b/Hardware/CPU/AMD0FCPU.cs	Sun Oct 31 22:08:47 2010 +0000
     1.3 @@ -118,13 +118,13 @@
     1.4      public override void Update() {
     1.5        base.Update();
     1.6  
     1.7 -      if (miscellaneousControlAddress != WinRing0.InvalidPciAddress) {
     1.8 +      if (miscellaneousControlAddress != Ring0.InvalidPciAddress) {
     1.9          for (uint i = 0; i < coreTemperatures.Length; i++) {
    1.10 -          if (WinRing0.WritePciConfigDwordEx(
    1.11 +          if (Ring0.WritePciConfig(
    1.12              miscellaneousControlAddress, THERMTRIP_STATUS_REGISTER,
    1.13              i > 0 ? THERM_SENSE_CORE_SEL_CPU1 : THERM_SENSE_CORE_SEL_CPU0)) {
    1.14              uint value;
    1.15 -            if (WinRing0.ReadPciConfigDwordEx(
    1.16 +            if (Ring0.ReadPciConfig(
    1.17                miscellaneousControlAddress, THERMTRIP_STATUS_REGISTER, 
    1.18                out value)) 
    1.19              {
    1.20 @@ -145,7 +145,7 @@
    1.21            Thread.Sleep(1);
    1.22  
    1.23            uint eax, edx;
    1.24 -          if (WinRing0.RdmsrTx(FIDVID_STATUS, out eax, out edx,
    1.25 +          if (Ring0.RdmsrTx(FIDVID_STATUS, out eax, out edx,
    1.26              (UIntPtr)(1L << cpuid[i][0].Thread))) {
    1.27              // CurrFID can be found in eax bits 0-5, MaxFID in 16-21
    1.28              // 8-13 hold StartFID, we don't use that here.