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