Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17974

CPU family and model are being detected incorrectly

    XMLWordPrintable

Details

    Description

      It seems ReactOS does detect them the way NT 5.0 does, however with the NT 5.1 and 5.2 the algorithm has changed a bit.

      Comparison of processor environment variables with Intel Core i5-8500 processor:

      Windows:

      PROCESSOR_ARCHITECTURE=AMD64
      PROCESSOR_IDENTIFIER=EM64T Family 6 Model 158 Stepping 10, GenuineIntel
      PROCESSOR_LEVEL=6
      PROCESSOR_REVISION=9e0a
      

      ReactOS:

      PROCESSOR_ARCHITECTURE=AMD64
      PROCESSOR_IDENTIFIER=EM64T Family 6 Model 14 Stepping 10, GenuineIntel
      PROCESSOR_LEVEL=6
      PROCESSOR_REVISION=0e0a
      

      You can notice the Model Number and Processor Revision are not correct in ReactOS.

      Responsible code is located here:

      This is documented here: https://www.geoffchappell.com/studies/windows/km/cpu/cpuid/00000001h/eax.htm

      All Windows versions since 5.1 recognise that the family and model can each be expanded from 4 bits to 8 by combining with the extended model and extended family. Expansion is indicated for both the family and model when the 4-bit family is full, i.e., contains 15:

      • the 8-bit family is computed by adding the 4-bit family, i.e., 15, to the 8-bit extended family;
      • the 8-bit model is formed by taking the 4-bit model for the low bits and the 4-bit extended model for the high bits.

      Starting with version 5.1 from Windows XP SP2 and version 5.2 from Windows Server 2003 SP1, expansion is also indicated for the model only, i.e., not the family, if the 4-bit family is 6—but only for processors from Intel and, in version 6.2 and higher, from Centaur.

      Attachments

        Issue Links

          Activity

            People

              Maribo63_4 BUGinator86
              binarymaster Stas'M
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: