Chameleon

Chameleon Commit Details

Date:2010-08-08 02:28:29 (13 years 8 months ago)
Author:Rekursor
Commit:325
Parents: 324
Message:Added cputype 0x901 for i3 dales cpus
Changes:
M/trunk/i386/libsaio/smbios_patcher.c

File differences

trunk/i386/libsaio/smbios_patcher.c
209209
210210
211211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226212
227213
228214
......
299285
300286
301287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302302
303303
304304
......
338338
339339
340340
341
341
342342
343343
344344
return Platform.CPU.CPUFrequency/1000000;
}
static int sm_get_simplecputype()
{
if (Platform.CPU.NoCores >= 4)
{
return 0x0501; // Quad-Core Xeon
}
else if (Platform.CPU.NoCores == 1)
{
return 0x0201; // Core Solo
};
return 0x0301; // Core 2 Duo
}
static int sm_get_bus_speed (const char *name, int table_num)
{
if (Platform.CPU.Vendor == 0x756E6547) // Intel
return 0;
}
static int sm_get_simplecputype()
{
if (Platform.CPU.NoCores >= 4)
{
return 0x0501; // Quad-Core Xeon
}
else if (Platform.CPU.NoCores == 1)
{
return 0x0201; // Core Solo
};
return 0x0301; // Core 2 Duo
}
static int sm_get_cputype (const char *name, int table_num)
{
static bool done = false;
case CPU_MODEL_DALES_32NM: // Intel Core i3, i5, i7 LGA1156 (32nm) (Clarkdale, Arrandale)
if (strstr(Platform.CPU.BrandString, "Core(TM) i3"))
return 0x301; // Core i3
return 0x901; // Core i3
if (strstr(Platform.CPU.BrandString, "Core(TM) i5"))
return 0x601; // Core i5
return 0x0701; // Core i7

Archive Download the corresponding diff file

Revision: 325