/* The constructor function caches the pointer of DXE Services Table. It will ASSERT() if that operation fails. It will ASSERT() if the pointer of DXE Services Table is NULL. It will always return EFI_SUCCESS. */
EFI_STATUS EFIAPI DxeServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
/* The constructor function caches the pointer of DXE Services Table. It will ASSERT() if that operation fails. It will ASSERT() if the pointer of DXE Services Table is NULL. It will always return EFI_SUCCESS. */
EFI_STATUS EFIAPI DxeServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
{
  EFI_STATUS  Status;
  Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **)&gDS);
  ASSERT_EFI_ERROR (Status);
  ASSERT (gDS != NULL);
  return Status;
}