Chameleon

Chameleon Commit Details

Date:2012-11-24 15:20:13 (11 years 5 months ago)
Author:ErmaC
Commit:2131
Parents: 2130
Message:IVY E5 CPU info from Clover (credits to Clover dev team).
Changes:
M/branches/ErmaC/Trunk/i386/libsaio/cpu.c
M/branches/ErmaC/Trunk/i386/libsaio/platform.h
M/branches/ErmaC/Trunk/i386/libsaio/smbios_getters.c
M/branches/ErmaC/Trunk/i386/libsaio/disk.c
M/branches/ErmaC/Trunk/i386/libsaio/acpi_patcher.c

File differences

branches/ErmaC/Trunk/i386/libsaio/acpi_patcher.c
585585
586586
587587
588
588589
589590
590591
591
592
592593
593594
594595
case CPU_MODEL_WESTMERE_EX:// Intel Xeon E7
case CPU_MODEL_SANDYBRIDGE:// Intel Core i3, i5, i7 LGA1155 (32nm)
case CPU_MODEL_IVYBRIDGE:// Intel Core i3, i5, i7 LGA1155 (22nm)
case CPU_MODEL_IVYBRIDGE_E5:
case CPU_MODEL_JAKETOWN:// Intel Core i7, Xeon E5 LGA2011 (32nm)
{
if ((Platform.CPU.Model == CPU_MODEL_SANDYBRIDGE) || (Platform.CPU.Model == CPU_MODEL_IVYBRIDGE) || (Platform.CPU.Model == CPU_MODEL_JAKETOWN))
if ((Platform.CPU.Model == CPU_MODEL_SANDYBRIDGE) || (Platform.CPU.Model == CPU_MODEL_IVYBRIDGE) || (Platform.CPU.Model == CPU_MODEL_IVYBRIDGE_E5) ||(Platform.CPU.Model == CPU_MODEL_JAKETOWN))
{
maximum.Control = (rdmsr64(MSR_IA32_PERF_STATUS) >> 8) & 0xff;
}
branches/ErmaC/Trunk/i386/libsaio/cpu.c
428428
429429
430430
431
431432
432433
433434
p->CPU.Model == CPU_MODEL_WESTMERE_EX ||
p->CPU.Model == CPU_MODEL_SANDYBRIDGE ||
p->CPU.Model == CPU_MODEL_JAKETOWN||
p->CPU.Model == CPU_MODEL_IVYBRIDGE_E5||
p->CPU.Model == CPU_MODEL_IVYBRIDGE))
{
msr = rdmsr64(MSR_PLATFORM_INFO);
branches/ErmaC/Trunk/i386/libsaio/platform.h
5757
5858
5959
60
60
6161
6262
6363
#define CPU_MODEL_ATOM_20000x36//
#define CPU_MODEL_IVYBRIDGE0x3A// Ivy Bridge
#define CPU_MODEL_HASWELL0x3C//
#define CPU_MODEL_IVY_BRIDGE_E50x3E//
#define CPU_MODEL_IVYBRIDGE_E50x3E//
/* CPU Features */
#define CPU_FEATURE_MMX0x00000001// MMX Instruction Set
branches/ErmaC/Trunk/i386/libsaio/disk.c
675675
676676
677677
678
678
679679
680680
681681
// E3C9E316-0B5C-4DB8-817D-F92DF00215AE - Microsoft Reserved Partition
EFI_GUID const GPT_BASICDATA2_GUID = { 0xE3C9E316, 0x0B5C, 0x4DB8, { 0x81, 0x7D, 0xF9, 0x2D, 0xF0, 0x02, 0x15, 0xAE } };
// EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 - zef - Basic Data Partition - for foreign OS support
EFI_GUID const GPT_BASICDATA_GUID = { 0xEBD0A0A2, 0xB9E5, 0x4433, { 0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7 } };
EFI_GUID const GPT_BASICDATA_GUID = { 0xEBD0A0A2, 0xB9E5, 0x4433, { 0x87, 0xC0, 0x68, 0xB6, 0xB7, 0x26, 0x99, 0xC7 } }; //ExFat
// 5808C8AA-7E8F-42E0-85D2-E1E90434CFB3 - Logical Disk Manager metadata partition
// AF9B60A0-1431-4F62-BC68-3311714A69AD - Logical Disk Manager data partition
// DE94BBA4-06D1-4D40-A16A-BFD50179D6AC - Windows Recovery Environment
branches/ErmaC/Trunk/i386/libsaio/smbios_getters.c
3232
3333
3434
35
3536
3637
3738
......
119120
120121
121122
123
122124
123125
124126
......
219221
220222
221223
224
222225
223226
224227
// set external clock to 0 for SANDY
// removes FSB info from system profiler as on real mac's.
case CPU_MODEL_SANDYBRIDGE:
case CPU_MODEL_IVYBRIDGE_E5:
case CPU_MODEL_IVYBRIDGE:
value->word = 0;
break;
}
case CPU_MODEL_SANDYBRIDGE:// Intel Core i3, i5, i7 LGA1155 (32nm)
case CPU_MODEL_IVYBRIDGE:// Intel Core i3, i5, i7 LGA1155 (22nm)
case CPU_MODEL_IVYBRIDGE_E5:
case CPU_MODEL_JAKETOWN:// Intel Core i7, Xeon E5 LGA2011 (32nm)
{
int busspeed;
case CPU_MODEL_SANDYBRIDGE:// Intel Core i3, i5, i7, Xeon E3-12xx LGA1155 (32nm)
case CPU_MODEL_IVYBRIDGE:// Intel Core i3, i5, i7 LGA1155 (22nm)
case CPU_MODEL_IVYBRIDGE_E5:
case CPU_MODEL_CLARKDALE:// Intel Core i3, i5 LGA1156 (32nm)
if (strstr(Platform.CPU.BrandString, "Xeon(R)"))
{

Archive Download the corresponding diff file

Revision: 2131