Chameleon

Chameleon Commit Details

Date:2011-09-03 16:47:17 (12 years 7 months ago)
Author:Evan Lojewski
Commit:1495
Parents: 1494
Message:Convert 0x756E6547 to CPUID_VENDOR_INTEL. getProcessorInformationExternalClock to return 0 for sandy bridge (thanks to Singal64)
Changes:
M/trunk/i386/libsaio/smbios_getters.c

File differences

trunk/i386/libsaio/smbios_getters.c
2121
2222
2323
24
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2548
2649
2750
......
3356
3457
3558
36
59
3760
3861
3962
......
113136
114137
115138
116
139
117140
118141
119142
bool getProcessorInformationExternalClock(returnType *value)
{
value->word = Platform.CPU.FSBFrequency/1000000;
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
{
switch (Platform.CPU.Family)
{
case 0x06:
{
switch (Platform.CPU.Model)
{
// set external clock to 0 for SANDY
// removes FSB info from system profiler as on real mac's.
case CPU_MODEL_SANDY_XEON:
case CPU_MODEL_SANDY:
value->word = 0;
break;
default:
value->word = Platform.CPU.FSBFrequency/1000000;
}
}
break;
default:
value->word = Platform.CPU.FSBFrequency/1000000;
}
}
return true;
}
bool getSMBOemProcessorBusSpeed(returnType *value)
{
if (Platform.CPU.Vendor == 0x756E6547) // Intel
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
{
switch (Platform.CPU.Family)
{
value->word = simpleGetSMBOemProcessorType();
if (Platform.CPU.Vendor == 0x756E6547) // Intel
if (Platform.CPU.Vendor == CPUID_VENDOR_INTEL) // Intel
{
if (!done)
{

Archive Download the corresponding diff file

Revision: 1495