]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c
UefiCpuPkg: Add NULL CPU Common Features Library instance
authorJeff Fan <jeff.fan@intel.com>
Tue, 7 Mar 2017 08:56:15 +0000 (16:56 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 22 Mar 2017 02:11:58 +0000 (10:11 +0800)
commit0a70d1c3042956c418c89a703d40d3262e4d6c87
tree65c3a9071bf047973660facf1cc7571becb83dce
parenteff78ac35b315cfdf09e0413df4bbc27368af2aa
UefiCpuPkg: Add NULL CPU Common Features Library instance

This NULL CPU common Features Library instance will register some CPU features
defined in Intel(R) 64 and IA-32 Architectures Software Developer's Manual,
Volume 3, September 2016, Chapter 35 Model-Specific-Registers (MSR).

Add PCD PcdCpuClockModulationDutyCycle and PcdIsPowerOnReset consumed by NULL
CPU Common Features Library instance.

v2:
  1. Using MSR_IA32_EFER to enable/disable NX feature instead of using
     MSR_IA32_MISC_ENABLE.
  2. Fix bug that SMX and VMX feature is swapped.

v3:
  1. Add AesniGetConfigData() to get current register state.

v5:
  Move MSR reading from AesniGetConfigData() to AesniSupport().

Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
17 files changed:
UefiCpuPkg/Library/CpuCommonFeaturesLib/Aesni.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/C1e.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/ClockModulation.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeatures.h [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.inf [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/CpuCommonFeaturesLib.uni [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/Eist.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/ExecuteDisable.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/FastStrings.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/FeatureControl.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/LimitCpuIdMaxval.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/MachineCheck.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/MonitorMwait.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/PendingBreak.c [new file with mode: 0644]
UefiCpuPkg/Library/CpuCommonFeaturesLib/X2Apic.c [new file with mode: 0644]
UefiCpuPkg/UefiCpuPkg.dec