diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2017-10-20 11:29:16 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2017-10-24 19:43:15 +0800 |
commit | 5d307a4d238923cf79451899c7e6663ff210e48c (patch) | |
tree | df9b1f86a894595dd611736c068eab29aebf5674 /Platform | |
parent | 23926ef8005f9a2cc5795896372d442c6d34f20d (diff) | |
download | edk2-platforms-5d307a4d238923cf79451899c7e6663ff210e48c.tar.xz |
Enable SmiHandlerProfile in DSC.
Enable SmiHandlerProfile in debug build.
Disable SmiHandlerProfile in release build.
Cc: Michael A Kubacki <michael.a.kubacki@intel.com>
Cc: Amy Chan <amy.chan@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Brett Wang <brett.wang@intel.com>
Cc: Daocheng Bu <daocheng.bu@intel.com>
Cc: Isaac W Oram <isaac.w.oram@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Amy Chan <amy.chan@intel.com>
Diffstat (limited to 'Platform')
-rw-r--r-- | Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgConfig.dsc | 7 | ||||
-rw-r--r-- | Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgPcd.dsc | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgConfig.dsc b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgConfig.dsc index 92842ca237..6913ef7bde 100644 --- a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgConfig.dsc +++ b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgConfig.dsc @@ -132,5 +132,10 @@ gSiPkgTokenSpaceGuid.PcdOptimizeCompilerEnable|TRUE
!endif
- gMinPlatformModuleTokenSpaceGuid.PcdPerformanceEnable|FALSE
+ !if $(TARGET) == DEBUG
+ gMinPlatformModuleTokenSpaceGuid.PcdSmiHandlerProfileEnable|TRUE
+ !else
+ gMinPlatformModuleTokenSpaceGuid.PcdSmiHandlerProfileEnable|FALSE
+ !endif
+ gMinPlatformModuleTokenSpaceGuid.PcdPerformanceEnable|FALSE
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgPcd.dsc b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgPcd.dsc index a96500ed0a..150218e6e0 100644 --- a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgPcd.dsc +++ b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/OpenBoardPkgPcd.dsc @@ -39,6 +39,10 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries|140
!endif
+!if gMinPlatformModuleTokenSpaceGuid.PcdSmiHandlerProfileEnable == TRUE
+ gEfiMdeModulePkgTokenSpaceGuid.PcdSmiHandlerProfilePropertyMask|0x1
+!endif
+
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
gSiPkgTokenSpaceGuid.PcdPciExpressRegionLength|0x10000000
gSiPkgTokenSpaceGuid.PcdTemporaryRamBase|0xFEF80000
|