paging.c
/* Select a victim and swap the contents to the disk.
 */
Select a victim and swap the contents to the disk.
Select a victim and swap the contents to the disk .
pte_t*
swap_page(pde_t *pgdir)
{
	pte_t *victim = select_a_victim(pgdir);
	swap_page_from_pte(victim);
	return victim;
}
pte_t * swap_page ( pde_t * pgdir ) { pte_t * victim = select_a_victim ( pgdir ) ; swap_page_from_pte ( victim ) ; return victim ; }
Select a victim and swap the contents to the disk.
Select a victim and swap the contents to the disk .
// cprintf("SWAP PAGE"); // panic("swap_page is not implemented");