Chameleon

Chameleon Commit Details

Date:2010-07-29 04:37:59 (8 years 11 months ago)
Author:Rekursor
Commit:276
Parents: 275
Message:Corrected latest cpu info mod display bugs.
Changes:
M/trunk/i386/libsaio/smbios_patcher.c

File differences

trunk/i386/libsaio/smbios_patcher.c
233233
234234
235235
236
237
238
236
237
239238
240
241
242239
243240
244
241
242
243
244
245245
246246
247247
......
254254
255255
256256
257
258
257
258
259259
260
260
261261
262262
263263
264264
265
265
266266
267267
268
268
269269
270270
271271
272272
273273
274
275
274
276275
277276
278277
}
static int sm_get_cputype (const char *name, int table_num)
{
static bool done = false;
static int result=0;
{
static bool done = false;
if (done) return result;
if (Platform.CPU.Vendor == 0x756E6547) // Intel
{
verbose("CPU is Intel, family 0x%x, model 0x%x, ext.model 0x%x\n", Platform.CPU.Family, Platform.CPU.Model, Platform.CPU.ExtModel);
if (!done) {
verbose("CPU is Intel, family 0x%x, model 0x%x, ext.model 0x%x\n", Platform.CPU.Family, Platform.CPU.Model, Platform.CPU.ExtModel);
done = true;
}
switch (Platform.CPU.Family)
{
case 0x1C: // Intel Atom (45nm)
return sm_get_simplecputype();
case 0x1A: // Intel Core i7 LGA1366 (45nm)
return (result = 0x0701);
case 0x1E: // Intel Core i5, i7 LGA1156 (45nm)
return 0x0701;
case 0x1E: // Intel Core i5, i7 LGA1156 (45nm)
// get this opportunity to fill the known processor interconnect speed for cor i5/i7 in GT/s
return (result = 0x0701);
return 0x0701;
case 0x19: // Intel Core i5 650 @3.20 Ghz
case 0x1F: // Intel Core i5, i7 LGA1156 (45nm) ???
return 0x0601;
case 0x25: // Intel Core i3, i5, i7 LGA1156 (32nm)
return (result = 0x0301);
return 0x0301;
case 0x2C: // Intel Core i7 LGA1366 (32nm) 6 Core
case 0x2E: // Intel Core i7 LGA1366 (45nm) 6 Core ???
return (result = 0x0601);
return 0x0601;
}
}
}
}
return (result = sm_get_simplecputype());
if (!done) done = true;
return sm_get_simplecputype();
}
static int sm_get_memtype (const char *name, int table_num)

Archive Download the corresponding diff file

Revision: 276