/* Parses Length and returns the length which DR7 LENn field accepts. For example: If we receive 1-Byte length then we should return 0. Zero gets written to DR7 LENn field. */
UINTN ConvertLengthData(IN UINTN Length)
/* Parses Length and returns the length which DR7 LENn field accepts. For example: If we receive 1-Byte length then we should return 0. Zero gets written to DR7 LENn field. */
UINTN ConvertLengthData(IN UINTN Length)
{
  if (Length == 1) {
    return 0;
  } else if (Length == 2) {
    return 1;
  } else if (Length == 4) {
    return 3;
  } else {
    return 2;
  }
}