/* This function validates the length coded on 4 bytes of a shared memory range */
STATIC VOID EFIAPI ValidateRangeLength4(IN UINT8 *Ptr, IN VOID *Context)
/* This function validates the length coded on 4 bytes of a shared memory range */
STATIC VOID EFIAPI ValidateRangeLength4(IN UINT8 *Ptr, IN VOID *Context)
{
  if (*(UINT32 *)Ptr < MIN_EXT_PCC_SUBSPACE_MEM_RANGE_LEN) {
    IncrementErrorCount ();
    Print (
      L"\nError: Shared memory range length is too short.\n"
      L"Length is %u when it should be greater than or equal to %u",
      *(UINT32 *)Ptr,
      MIN_EXT_PCC_SUBSPACE_MEM_RANGE_LEN
      );
  }
}