/* SMM Non-Volatile variable write service is ready notify event handler. */
VOID EFIAPI SmmVariableWriteReady(IN EFI_EVENT Event, IN VOID *Context)
/* SMM Non-Volatile variable write service is ready notify event handler. */
VOID EFIAPI SmmVariableWriteReady(IN EFI_EVENT Event, IN VOID *Context)
{
  EFI_STATUS  Status;
  VOID        *ProtocolOps;
  Status = gBS->LocateProtocol (&gSmmVariableWriteGuid, NULL, (VOID **)&ProtocolOps);
  if (EFI_ERROR (Status)) {
    return;
  }
  RecordSecureBootPolicyVarData ();
  Status = gBS->InstallProtocolInterface (
                  &mHandle,
                  &gEfiVariableWriteArchProtocolGuid,
                  EFI_NATIVE_INTERFACE,
                  NULL
                  );
  ASSERT_EFI_ERROR (Status);
  gBS->CloseEvent (Event);
}