]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/CpuCommonFeaturesLib: Use MSR data structure when change MSR value.
authorEric Dong <eric.dong@intel.com>
Fri, 18 Aug 2017 03:19:03 +0000 (11:19 +0800)
committerEric Dong <eric.dong@intel.com>
Mon, 28 Aug 2017 07:13:49 +0000 (15:13 +0800)
commitb2b0ffc9b7720bf97b8f9390f77e7399e4e96596
treeb2bf1a4777a78fbf0b6df9dde58a0adb5c61d4f5
parenta2e24a2a012349f9233f0eb83ad71006e1c4989e
UefiCpuPkg/CpuCommonFeaturesLib: Use MSR data structure when change MSR value.

When update MSR values, current code use BITxx to modify it. Enhance the code
to use corresponding MSR's data structures to make it more user friendly.

V2: Move architecturalMsr.h file. definition to architecturalMsr.h file.
    Use structure members to do value assignment.

Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
UefiCpuPkg/Library/CpuCommonFeaturesLib/ProcTrace.c