Another small fix of the coreId calculation for multi-CPU systems.
authormoel.mich
Tue, 27 Apr 2010 07:31:46 +0000
changeset 1029620449d2620
parent 101 f8589379e32c
child 103 0845adc5402e
Another small fix of the coreId calculation for multi-CPU systems.
Hardware/CPU/CPUID.cs
     1.1 --- a/Hardware/CPU/CPUID.cs	Mon Apr 26 19:22:42 2010 +0000
     1.2 +++ b/Hardware/CPU/CPUID.cs	Tue Apr 27 07:31:46 2010 +0000
     1.3 @@ -194,7 +194,7 @@
     1.4  
     1.5        processorId = (uint)(apicId >> (int)(coreMaskWith + threadMaskWith));
     1.6        coreId = (uint)((apicId >> (int)(threadMaskWith)) 
     1.7 -        - (processorId << (int)(coreMaskWith + threadMaskWith)));
     1.8 +        - (processorId << (int)(coreMaskWith)));
     1.9        threadId = apicId
    1.10          - (processorId << (int)(coreMaskWith + threadMaskWith))
    1.11          - (coreId << (int)(threadMaskWith));