Skip to content
Snippets Groups Projects
Commit 3404da2a authored by Videau Luc's avatar Videau Luc
Browse files

remove uvmalloc use

parent 42de5a26
No related branches found
Tags tp2-act-5-2
No related merge requests found
......@@ -71,10 +71,6 @@ exec(char *path, char **argv)
printf("exec: program header vaddr + memsz < vaddr\n");
goto bad;
}
if((sz = uvmalloc(pagetable, sz, ph.vaddr + ph.memsz)) == 0){
printf("exec: uvmalloc failed\n");
goto bad;
}
if(ph.vaddr % PGSIZE != 0){
printf("exec: vaddr not page aligned\n");
goto bad;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment