xv7/kernel/vm.c
// create an empty user page table.
create an empty user page table.
create an empty user page table .
pagetable_t
uvmcreate()
{
  pagetable_t pagetable;
  pagetable = (pagetable_t) kalloc();
  if(pagetable == 0)
    panic("uvmcreate: out of memory");
  memset(pagetable, 0, PGSIZE);
  return pagetable;
}
pagetable_t uvmcreate ( ) { pagetable_t pagetable ; pagetable = ( pagetable_t ) kalloc ( ) ; if ( pagetable == 0 ) panic ( " " ) ; memset ( pagetable , 0 , PGSIZE ) ; return pagetable ; }
create an empty user page table.
create an empty user page table .