/* The constructor function registers a callback for the ExitBootServices event. */
EFI_STATUS EFIAPI DxeBaseSerialPortLibHobConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* The constructor function registers a callback for the ExitBootServices event. */
EFI_STATUS EFIAPI DxeBaseSerialPortLibHobConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  EFI_EVENT  SerialPortLibHobExitBootServicesEvent;
  return SystemTable->BootServices->CreateEvent (
                                      EVT_SIGNAL_EXIT_BOOT_SERVICES,
                                      TPL_NOTIFY,
                                      BaseSerialPortLibHobExitBootServicesEvent,
                                      NULL,
                                      &SerialPortLibHobExitBootServicesEvent
                                      );
}