/* Set an entry to be a table pte. */
STATIC UINTN SetTableEntry(IN UINTN Entry)
/* Set an entry to be a table pte. */
STATIC UINTN SetTableEntry(IN UINTN Entry)
{
  Entry  = SetValidPte (Entry);
  Entry &= ~(RISCV_PG_X | RISCV_PG_W | RISCV_PG_R);
  return Entry;
}