paging.c
// Clear access bit of a random pte.
Clear access bit of a random pte.
Clear access bit of a random pte .
void
clearaccessbit(pde_t *pgdir)
{
	int random_no = 10 % NPDENTRIES;
	pde_t *pde = &pgdir[random_no];
	pte_t *random_pte = (pte_t*)P2V(PTE_ADDR(*pde));
	*random_pte &= ~(PTE_A); 
}
void clearaccessbit ( pde_t * pgdir ) { int random_no = 10 % NPDENTRIES ; pde_t * pde = & pgdir [ random_no ] ; pte_t * random_pte = ( pte_t * ) P2V ( PTE_ADDR ( * pde ) ) ; * random_pte &= ~ ( PTE_A ) ; }
Clear access bit of a random pte.
Clear access bit of a random pte .
// cprintf("CLEAR ACCESS BIT");