/* Initialize runtime memory status code table as initialization for runtime memory status code worker */
EFI_STATUS RtMemoryStatusCodeInitializeWorker(VOID)
/* Initialize runtime memory status code table as initialization for runtime memory status code worker */
EFI_STATUS RtMemoryStatusCodeInitializeWorker(VOID)
{
  EFI_STATUS  Status;
  mRtMemoryStatusCodeTable = AllocateRuntimePool (
                               sizeof (RUNTIME_MEMORY_STATUSCODE_HEADER) +
                               PcdGet16 (PcdStatusCodeMemorySize) * 1024
                               );
  ASSERT (mRtMemoryStatusCodeTable != NULL);
  mRtMemoryStatusCodeTable->RecordIndex      = 0;
  mRtMemoryStatusCodeTable->NumberOfRecords  = 0;
  mRtMemoryStatusCodeTable->MaxRecordsNumber =
    (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD);
  Status = gBS->InstallConfigurationTable (&gMemoryStatusCodeRecordGuid, mRtMemoryStatusCodeTable);
  return Status;
}