]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg: PiSmmCpuDxeSmm skip MSR_IA32_MISC_ENABLE manipulation on AMD
authorKirkendall, Garrett <garrett.kirkendall@amd.com>
Mon, 22 Jun 2020 13:18:25 +0000 (08:18 -0500)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 Jul 2020 23:25:16 +0000 (23:25 +0000)
commitbdafda8c457eb90c65f37026589b54258300f05c
treeaca0ea78d816844ca80275a2c9f80ad8ddcc9c87
parentdf667535ed45086bce89d48044009afe3c9792e6
UefiCpuPkg: PiSmmCpuDxeSmm skip MSR_IA32_MISC_ENABLE manipulation on AMD

AMD does not support MSR_IA32_MISC_ENABLE.  Accessing that register
causes and exception on AMD processors.  If Execution Disable is
supported, but if the processor is an AMD processor, skip manipulating
MSR_IA32_MISC_ENABLE[34] XD Disable bit.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
Message-Id: <20200622131825.1352-5-Garrett.Kirkendall@amd.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h
UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm