]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile: Remove unnecessary BTS MSRs
authorJeff Fan <jeff.fan@intel.com>
Tue, 5 Apr 2016 06:33:45 +0000 (14:33 +0800)
committerMichael Kinney <michael.d.kinney@intel.com>
Mon, 16 May 2016 17:40:18 +0000 (10:40 -0700)
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>
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c
UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h

index 0b7502042578e20ec0275fe0ab53f0bdbcf480a3..8ecc5415a341fe90b9a49b2dab10805283a5763d 100644 (file)
@@ -1071,8 +1071,6 @@ ActivateLBR (
   if ((DebugCtl & MSR_DEBUG_CTL_LBR) != 0) {\r
     return ;\r
   }\r
-  AsmWriteMsr64 (MSR_LER_FROM_LIP, 0);\r
-  AsmWriteMsr64 (MSR_LER_TO_LIP, 0);\r
   DebugCtl |= MSR_DEBUG_CTL_LBR;\r
   AsmWriteMsr64 (MSR_DEBUG_CTL, DebugCtl);\r
 }\r
index de6eb0aceb9c174c6bdf43f7f8986d4f3f034f6b..5aaf945cfd5c644ad282c672bd511cc210f2275d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 SMM profile internal header file.\r
 \r
-Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -66,9 +66,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define   MSR_DEBUG_CTL_TR           0x40\r
 #define   MSR_DEBUG_CTL_BTS          0x80\r
 #define   MSR_DEBUG_CTL_BTINT        0x100\r
-#define MSR_LASTBRANCH_TOS           0x1C9\r
-#define MSR_LER_FROM_LIP             0x1DD\r
-#define MSR_LER_TO_LIP               0x1DE\r
 #define MSR_DS_AREA                  0x600\r
 \r
 typedef struct {\r