UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile: Remove unnecessary BTS MSRs
BTS used DS save area by IA32_DS_AREA MSR to get invoker IP instead of the Last Branch Record Stack. So, removed the unnecessary BTS MSRs. Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
@@ -1071,8 +1071,6 @@ ActivateLBR (
|
||||
if ((DebugCtl & MSR_DEBUG_CTL_LBR) != 0) {
|
||||
return ;
|
||||
}
|
||||
AsmWriteMsr64 (MSR_LER_FROM_LIP, 0);
|
||||
AsmWriteMsr64 (MSR_LER_TO_LIP, 0);
|
||||
DebugCtl |= MSR_DEBUG_CTL_LBR;
|
||||
AsmWriteMsr64 (MSR_DEBUG_CTL, DebugCtl);
|
||||
}
|
||||
|
Reference in New Issue
Block a user