mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
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:
parent
4b1f9ac19d
commit
846704334c
@ -1071,8 +1071,6 @@ ActivateLBR (
|
|||||||
if ((DebugCtl & MSR_DEBUG_CTL_LBR) != 0) {
|
if ((DebugCtl & MSR_DEBUG_CTL_LBR) != 0) {
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
AsmWriteMsr64 (MSR_LER_FROM_LIP, 0);
|
|
||||||
AsmWriteMsr64 (MSR_LER_TO_LIP, 0);
|
|
||||||
DebugCtl |= MSR_DEBUG_CTL_LBR;
|
DebugCtl |= MSR_DEBUG_CTL_LBR;
|
||||||
AsmWriteMsr64 (MSR_DEBUG_CTL, DebugCtl);
|
AsmWriteMsr64 (MSR_DEBUG_CTL, DebugCtl);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
SMM profile internal header file.
|
SMM profile internal header file.
|
||||||
|
|
||||||
Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -66,9 +66,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
#define MSR_DEBUG_CTL_TR 0x40
|
#define MSR_DEBUG_CTL_TR 0x40
|
||||||
#define MSR_DEBUG_CTL_BTS 0x80
|
#define MSR_DEBUG_CTL_BTS 0x80
|
||||||
#define MSR_DEBUG_CTL_BTINT 0x100
|
#define MSR_DEBUG_CTL_BTINT 0x100
|
||||||
#define MSR_LASTBRANCH_TOS 0x1C9
|
|
||||||
#define MSR_LER_FROM_LIP 0x1DD
|
|
||||||
#define MSR_LER_TO_LIP 0x1DE
|
|
||||||
#define MSR_DS_AREA 0x600
|
#define MSR_DS_AREA 0x600
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user