Changeset 3746 for trunk/src/kernel32/cpu.cpp
- Timestamp:
- Jun 23, 2000, 9:02:38 PM (25 years ago)
- 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 $ */ 2 2 /* 3 3 * Odin win32 CPU apis … … 119 119 switch ((signature >> 8)&0xf) { 120 120 case 3: cachedsi.dwProcessorType = PROCESSOR_INTEL_386; 121 cachedsi.wProcessorLevel= 3;122 121 break; 123 122 case 4: cachedsi.dwProcessorType = PROCESSOR_INTEL_486; 124 cachedsi.wProcessorLevel= 4;125 123 break; 126 124 case 5: cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM; 127 cachedsi.wProcessorLevel= 5;128 125 break; 129 126 case 6: cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM; 130 cachedsi.wProcessorLevel= 5;131 127 break; 132 128 default: 133 129 break; 134 130 } 131 cachedsi.wProcessorRevision = signature & 0xff; 132 cachedsi.wProcessorLevel = (signature >> 8)&0xf; 133 135 134 /* set the CPU type of the current processor */ 136 135 sprintf(buf,"CPU %ld",cachedsi.dwProcessorType); … … 141 140 RegSetValueExA(xhkey,"VendorIdentifier",0,REG_SZ,(LPBYTE)buf,strlen(buf)); 142 141 } 143 cachedsi.wProcessorRevision = signature & 0xf;144 142 145 143 //TODO: FPU fdiv bug
Note:
See TracChangeset
for help on using the changeset viewer.