/* Determine if an entry is a block pte. */
STATIC BOOLEAN IsBlockEntry(IN UINTN Entry)
/* Determine if an entry is a block pte. */
STATIC BOOLEAN IsBlockEntry(IN UINTN Entry)
{
  return IsValidPte (Entry) &&
         (Entry & (RISCV_PG_X | RISCV_PG_R));
}