mem              1782 usertests.c      mem();
mem               185 vm.c             char *mem;
mem               189 vm.c             mem = kalloc();
mem               190 vm.c             memset(mem, 0, PGSIZE);
mem               191 vm.c             mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U);
mem               192 vm.c             memmove(mem, init, sz);
mem               224 vm.c             char *mem;
mem               234 vm.c               mem = kalloc();
mem               235 vm.c               if(mem == 0){
mem               240 vm.c               memset(mem, 0, PGSIZE);
mem               241 vm.c               if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
mem               244 vm.c                 kfree(mem);
mem               321 vm.c             char *mem;
mem               332 vm.c               if((mem = kalloc()) == 0)
mem               334 vm.c               memmove(mem, (char*)P2V(pa), PGSIZE);
mem               335 vm.c               if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) {
mem               336 vm.c                 kfree(mem);