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

fix: remove double allocation of stack

parent f097a3aa
No related branches found
Tags tp2-act-5-2
No related merge requests found
......@@ -100,8 +100,6 @@ exec(char *path, char **argv)
sz = USTACK_TOP;
sp = sz;
stackbase = sp - PGSIZE;
p->stack_vma = add_memory_area(p, stackbase, sz); //stack
p->heap_vma = add_memory_area(p, sz, sz); //heap
// Push argument strings, prepare rest of stack in ustack.
......
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