[Bug 3698] New: Add new APIs to UefiCpuPkg/UefiCpuLib


bugzilla-daemon@...
 

https://bugzilla.tianocore.org/show_bug.cgi?id=3698

Bug ID: 3698
Summary: Add new APIs to UefiCpuPkg/UefiCpuLib
Product: EDK2
Version: Current
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Lowest
Component: Code
Assignee: unassigned@tianocore.org
Reporter: ray.ni@intel.com
CC: edk2+bugs+int+994+563148131503455288@groups.io

This Bugzilla proposes to add the following APIs to UefiCpuLib in UefiCpuPkg.
1. UINT32 GetCpuFamilyModel () {
CPUID_VERSION_INFO_EAX Eax;
//
// Read the CPUID information
//
AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, NULL, NULL, NULL);

//
// Mask other fields than Family and Model.
//
Eax.Bits.SteppingId = 0;
Eax.Bits.ProcessorType = 0;
Eax.Bits.Reserved1 = 0;
Eax.Bits.Reserved2 = 0;
return Eax.Uint32;
}

2. UINT8 GetCpuStepping () {
CPUID_VERSION_INFO_EAX Eax;
//
// Read the CPUID information
//
AsmCpuid (CPUID_VERSION_INFO, &Eax.Uint32, NULL, NULL, NULL);

return (UINT8) Eax.Bits.SteppingId;
}

--
You are receiving this mail because:
You are on the CC list for the bug.