1/* 2 * Copyright (c) 2008 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 82 unchanged lines hidden (view full) --- 91 assert(vendorStringSize >= 12); 92 result = CpuidResult( 93 0x80000000 + NumExtendedCpuidFuncs - 1, 94 stringToRegister(vendorString), 95 stringToRegister(vendorString + 4), 96 stringToRegister(vendorString + 8)); 97 break; 98 case FamilyModelSteppingBrandFeatures: |
99 result = CpuidResult(0x00020f51, 0x00000405, |
100 0xe3d3fbff, 0x00000001); |
101 break; 102 case NameString1: 103 case NameString2: 104 case NameString3: 105 { 106 // Zero fill anything beyond the end of the string. This 107 // should go away once the string is a vetted parameter. 108 char cleanName[nameStringSize]; --- 39 unchanged lines hidden (view full) --- 148 assert(vendorStringSize >= 12); 149 result = CpuidResult( 150 NumStandardCpuidFuncs - 1, 151 stringToRegister(vendorString), 152 stringToRegister(vendorString + 4), 153 stringToRegister(vendorString + 8)); 154 break; 155 case FamilyModelStepping: |
156 result = CpuidResult(0x00020f51, 0x00000805, |
157 0xe7dbfbff, 0x00000001); |
158 break; 159 default: 160 warn("x86 cpuid: unimplemented function %u", funcNum); 161 return false; 162 } 163 } else { 164 warn("x86 cpuid: unknown family %#x", family); 165 return false; 166 } 167 168 return true; 169 } 170} // namespace X86ISA |