1.1 --- a/Hardware/CPU/IntelCPU.cs Mon Nov 01 20:44:21 2010 +0000
1.2 +++ b/Hardware/CPU/IntelCPU.cs Wed Nov 03 22:07:46 2010 +0000
1.3 @@ -118,7 +118,7 @@
1.4 tjMax = new float[coreCount];
1.5 for (int i = 0; i < coreCount; i++) {
1.6 if (Ring0.RdmsrTx(IA32_TEMPERATURE_TARGET, out eax,
1.7 - out edx, (UIntPtr)(1L << cpuid[i][0].Thread))) {
1.8 + out edx, 1UL << cpuid[i][0].Thread)) {
1.9 tjMax[i] = (eax >> 16) & 0xFF;
1.10 } else {
1.11 tjMax[i] = 100;
1.12 @@ -217,7 +217,7 @@
1.13 uint eax, edx;
1.14 if (Ring0.RdmsrTx(
1.15 IA32_THERM_STATUS_MSR, out eax, out edx,
1.16 - (UIntPtr)(1L << cpuid[i][0].Thread))) {
1.17 + 1UL << cpuid[i][0].Thread)) {
1.18 // if reading is valid
1.19 if ((eax & 0x80000000) != 0) {
1.20 // get the dist from tjMax from bits 22:16
1.21 @@ -237,7 +237,7 @@
1.22 for (int i = 0; i < coreClocks.Length; i++) {
1.23 System.Threading.Thread.Sleep(1);
1.24 if (Ring0.RdmsrTx(IA32_PERF_STATUS, out eax, out edx,
1.25 - (UIntPtr)(1L << cpuid[i][0].Thread)))
1.26 + 1UL << cpuid[i][0].Thread))
1.27 {
1.28 newBusClock =
1.29 TimeStampCounterFrequency / timeStampCounterMultiplier;