summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/SmiHandlerProfileLibNull
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2017-03-10 11:42:53 +0800
committerJiewen Yao <jiewen.yao@intel.com>2017-03-13 16:04:11 +0800
commit091e902bd31f9d53f9c51c71d3772e11a8ea211a (patch)
tree50e08970b5c658bf67b3432c45c51568eff8eb22 /MdePkg/Library/SmiHandlerProfileLibNull
parente5735b98c2da8b4eeed36edfbec58a55ca3d236b (diff)
downloadedk2-091e902bd31f9d53f9c51c71d3772e11a8ea211a.tar.gz
edk2-091e902bd31f9d53f9c51c71d3772e11a8ea211a.tar.bz2
edk2-091e902bd31f9d53f9c51c71d3772e11a8ea211a.zip
MdePkg/SmiHandlerProfile: Add Context support in Unregister
The reason is that we observe that a platform may use same Handler for different context. In order to support Unregister such handler, we have to input context information as well. Cc: Jeff Fan <jeff.fan@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdePkg/Library/SmiHandlerProfileLibNull')
-rw-r--r--MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c b/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
index 6ae47185c0..7f4855bd06 100644
--- a/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
+++ b/MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
@@ -56,6 +56,10 @@ SmiHandlerProfileRegisterHandler (
For the SmmChildDispatch protocol, the HandlerGuid
must be the GUID of SmmChildDispatch protocol.
@param Handler The SMI handler.
+ @param Context The context of the SMI handler.
+ If it is NOT NULL, it will be used to check what is registered.
+ @param ContextSize The size of the context in bytes.
+ If Context is NOT NULL, it will be used to check what is registered.
@retval EFI_SUCCESS The original record is removed.
@retval EFI_UNSUPPORTED The feature is unsupported.
@@ -65,7 +69,9 @@ EFI_STATUS
EFIAPI
SmiHandlerProfileUnregisterHandler (
IN EFI_GUID *HandlerGuid,
- IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler
+ IN EFI_SMM_HANDLER_ENTRY_POINT2 Handler,
+ IN VOID *Context, OPTIONAL
+ IN UINTN ContextSize OPTIONAL
)
{
return EFI_UNSUPPORTED;