mirror of https://github.com/acidanthera/audk.git
1) Make EfiCpuVersion.c pass ICC and GCC tool-chain
2) Add in CpuIA32Lib_Edk2.inf. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5717 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a926396d18
commit
8e35b68162
|
@ -29,6 +29,7 @@ COMPONENT_TYPE = LIBRARY
|
|||
[sources.ia32]
|
||||
IA32/CpuIA32.c | MSFT
|
||||
IA32/CpuIA32.asm | INTEL
|
||||
IA32/CpuIA32.S | GCC
|
||||
|
||||
[sources.x64]
|
||||
x64/Cpu.asm | MSFT
|
||||
|
|
|
@ -59,14 +59,14 @@ Arguments:
|
|||
if (Model != NULL) {
|
||||
*Model = (UINT8) ((Register.RegEax >> 4) & 0xF);
|
||||
if (TempFamilyId == 0x6 || TempFamilyId == 0xF) {
|
||||
*Model |= (Register.RegEax >> 12) & 0xF0;
|
||||
*Model = (UINT8) (*Model | ((Register.RegEax >> 12) & 0xF0));
|
||||
}
|
||||
}
|
||||
|
||||
if (FamilyId != NULL) {
|
||||
*FamilyId = TempFamilyId;
|
||||
if (TempFamilyId == 0xF) {
|
||||
*FamilyId = *FamilyId + (UINT16) ((Register.RegEax >> 20) & 0xFF);
|
||||
*FamilyId = (UINT8 ) (*FamilyId + (UINT16) ((Register.RegEax >> 20) & 0xFF));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue