diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2017-10-20 11:28:50 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2017-10-24 19:43:10 +0800 |
commit | 23926ef8005f9a2cc5795896372d442c6d34f20d (patch) | |
tree | e8135a0d55cb9bf84569a9e6455dd61065c00005 /Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h | |
parent | bb0af376e515f6e6a68fe06a1fadd910db5403dd (diff) | |
download | edk2-platforms-23926ef8005f9a2cc5795896372d442c6d34f20d.tar.xz |
Enable SmiHandlerProfile in Silicon code.
Make SmiChildDispatch report the SMI handler information.
As such, people can know how many SMI child handlers are
installed.
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 'Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h')
-rw-r--r-- | Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h b/Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h index 7e4cce83f3..3eebdc1daf 100644 --- a/Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h +++ b/Silicon/Intel/KabylakeSiliconPkg/Pch/PchSmiDispatcher/Smm/PchSmm.h @@ -53,6 +53,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Protocol/PchEspiSmiDispatch.h>
#include "IoTrap.h"
+#include <Library/SmiHandlerProfileLib.h>
+
#define EFI_BAD_POINTER 0xAFAFAFAFAFAFAFAFULL
extern BOOLEAN mReadyToLock;
@@ -450,6 +452,7 @@ struct _DATABASE_RECORD { /// The protocol that this record dispatches
///
PCH_SMM_PROTOCOL_TYPE ProtocolType;
+ EFI_GUID *ProtocolGuid;
///
/// Misc data for private usage
@@ -915,6 +918,7 @@ PchInternalEspiSmiUnRegister ( **/
EFI_STATUS
PchSmiRecordInsert (
+ IN EFI_GUID *ProtocolGuid,
IN PCH_SMM_SOURCE_DESC *SrcDesc,
IN PCH_SMI_CALLBACK_FUNCTIONS DispatchFunction,
IN PCH_SMI_TYPES PchSmiType,
|