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