]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/SmiHandlerProfileLibNull/SmiHandlerProfileLibNull.c
MdePkg/SmiHandlerProfile: Add Context support in Unregister
[mirror_edk2.git] / MdePkg / Library / SmiHandlerProfileLibNull / SmiHandlerProfileLibNull.c
index 6ae47185c05fc4b5148f87a5630f798bb2b46fef..7f4855bd06688015f1a56ea95fba3aeee8d5ffd0 100644 (file)
@@ -56,6 +56,10 @@ SmiHandlerProfileRegisterHandler (
                          For the SmmChildDispatch protocol, the HandlerGuid\r
                          must be the GUID of SmmChildDispatch protocol.\r
   @param Handler         The SMI handler.\r
+  @param Context         The context of the SMI handler.\r
+                         If it is NOT NULL, it will be used to check what is registered.\r
+  @param ContextSize     The size of the context in bytes.\r
+                         If Context is NOT NULL, it will be used to check what is registered.\r
 \r
   @retval EFI_SUCCESS           The original record is removed.\r
   @retval EFI_UNSUPPORTED       The feature is unsupported.\r
@@ -65,7 +69,9 @@ EFI_STATUS
 EFIAPI\r
 SmiHandlerProfileUnregisterHandler (\r
   IN EFI_GUID                       *HandlerGuid,\r
-  IN EFI_SMM_HANDLER_ENTRY_POINT2   Handler\r
+  IN EFI_SMM_HANDLER_ENTRY_POINT2   Handler,\r
+  IN VOID                           *Context, OPTIONAL\r
+  IN UINTN                          ContextSize OPTIONAL\r
   )\r
 {\r
   return EFI_UNSUPPORTED;\r