Ensure {0,0} auxv makes it into memory

This commit is contained in:
Kevin Lange 2014-04-24 23:02:28 -07:00
parent 273b4ce9fa
commit dedc201bc1

View File

@ -123,6 +123,7 @@ exec(
};
int auxvc = 0;
for (auxvc = 0; auxv[auxvc].id != 0; ++auxvc);
auxvc++;
uintptr_t heap = current_process->image.entry + current_process->image.size;
alloc_frame(get_page(heap, 1, current_directory), 0, 1);