/* Converts the runtime memory range physical addresses to virtual addresses. */
VOID ConvertRuntimeMemoryRangeAddresses(IN PRM_RUNTIME_MMIO_RANGES *RuntimeMmioRanges)
/* Converts the runtime memory range physical addresses to virtual addresses. */
VOID ConvertRuntimeMemoryRangeAddresses(IN PRM_RUNTIME_MMIO_RANGES *RuntimeMmioRanges)
{
  UINTN  Index;
  if ((RuntimeMmioRanges == NULL) || (RuntimeMmioRanges->Count == 0)) {
    return;
  }
  for (Index = 0; Index < (UINTN)RuntimeMmioRanges->Count; Index++) {
    RuntimeMmioRanges->Range[Index].VirtualBaseAddress = RuntimeMmioRanges->Range[Index].PhysicalBaseAddress;
    gRT->ConvertPointer (0x0, (VOID **)&(RuntimeMmioRanges->Range[Index].VirtualBaseAddress));
  }
}