/* Function to compare 2 EFI_SMRAM_DESCRIPTOR based on CpuStart. */
INTN EFIAPI CpuSmramRangeCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
/* Function to compare 2 EFI_SMRAM_DESCRIPTOR based on CpuStart. */
INTN EFIAPI CpuSmramRangeCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
{
  if (((EFI_SMRAM_DESCRIPTOR *)Buffer1)->CpuStart > ((EFI_SMRAM_DESCRIPTOR *)Buffer2)->CpuStart) {
    return 1;
  } else if (((EFI_SMRAM_DESCRIPTOR *)Buffer1)->CpuStart < ((EFI_SMRAM_DESCRIPTOR *)Buffer2)->CpuStart) {
    return -1;
  }
  return 0;
}