Ignore:
Timestamp:
Jun 23, 2000, 9:02:38 PM (25 years ago)
Author:
sandervl
Message:

Resource lookup fix (type '#') + misc changes/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/cpu.cpp

    r3461 r3746  
    1 /* $Id: cpu.cpp,v 1.8 2000-04-29 18:26:57 sandervl Exp $ */
     1/* $Id: cpu.cpp,v 1.9 2000-06-23 19:02:37 sandervl Exp $ */
    22/*
    33 * Odin win32 CPU apis
     
    119119                switch ((signature >> 8)&0xf) {
    120120                case 3: cachedsi.dwProcessorType = PROCESSOR_INTEL_386;
    121                         cachedsi.wProcessorLevel= 3;
    122121                        break;
    123122                case 4: cachedsi.dwProcessorType = PROCESSOR_INTEL_486;
    124                         cachedsi.wProcessorLevel= 4;
    125123                        break;
    126124                case 5: cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
    127                         cachedsi.wProcessorLevel= 5;
    128125                        break;
    129126                case 6: cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
    130                         cachedsi.wProcessorLevel= 5;
    131127                        break;
    132128                default:
    133129                        break;
    134130                }
     131                cachedsi.wProcessorRevision = signature & 0xff;
     132                cachedsi.wProcessorLevel    = (signature >> 8)&0xf;
     133
    135134                /* set the CPU type of the current processor */
    136135                sprintf(buf,"CPU %ld",cachedsi.dwProcessorType);
     
    141140                        RegSetValueExA(xhkey,"VendorIdentifier",0,REG_SZ,(LPBYTE)buf,strlen(buf));
    142141                }
    143                 cachedsi.wProcessorRevision = signature & 0xf;
    144142
    145143//TODO: FPU fdiv bug
Note: See TracChangeset for help on using the changeset viewer.