-/**\r
- ExitPmAuth Protocol notification event handler.\r
-\r
- @param[in] Event Event whose notification function is being invoked.\r
- @param[in] Context Pointer to the notification function's context.\r
-**/\r
-VOID\r
-EFIAPI\r
-ExitPmAuthNotification (\r
- IN EFI_EVENT Event,\r
- IN VOID *Context\r
- )\r
-{\r
- EFI_STATUS Status;\r
- VOID *DxeSmmReadyToLock;\r
-\r
- //\r
- // Add more check to locate protocol after got event, because\r
- // the library will signal this event immediately once it is register\r
- // just in case it is already installed.\r
- //\r
- Status = gBS->LocateProtocol (\r
- &gEfiDxeSmmReadyToLockProtocolGuid,\r
- NULL,\r
- &DxeSmmReadyToLock\r
- );\r
- if (EFI_ERROR (Status)) {\r
- return ;\r
- }\r
-\r
- //\r
- // Uninstall ACPI SDT protocol, so that we can make sure no one update ACPI table from API level.\r
- //\r
- Status = gBS->UninstallProtocolInterface (\r
- mHandle,\r
- &gEfiAcpiSdtProtocolGuid,\r
- &mPrivateData->AcpiSdtProtocol\r
- );\r
- ASSERT_EFI_ERROR (Status);\r
-\r
- //\r
- // Close event, so it will not be invoked again.\r
- //\r
- gBS->CloseEvent (Event);\r
-\r
- return ;\r
-}\r
-\r