/* This function registers a function which will be called whenever a new ACPI table is installed. */
VOID SdtRegisterNotify(IN EFI_ACPI_NOTIFICATION_FN Notification)
/* This function registers a function which will be called whenever a new ACPI table is installed. */
VOID SdtRegisterNotify(IN EFI_ACPI_NOTIFICATION_FN Notification)
{
  EFI_ACPI_TABLE_INSTANCE  *AcpiTableInstance;
  EFI_ACPI_NOTIFY_LIST     *CurrentNotifyList;
  AcpiTableInstance = SdtGetAcpiTableInstance ();
  CurrentNotifyList = AllocatePool (sizeof (EFI_ACPI_NOTIFY_LIST));
  ASSERT (CurrentNotifyList != NULL);
  CurrentNotifyList->Signature    = EFI_ACPI_NOTIFY_LIST_SIGNATURE;
  CurrentNotifyList->Notification = Notification;
  InsertTailList (&AcpiTableInstance->NotifyList, &CurrentNotifyList->Link);
  return;
}