From dedc201bc1d1cfde8b078da59134f2feb440e78b Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Thu, 24 Apr 2014 23:02:28 -0700 Subject: [PATCH] Ensure {0,0} auxv makes it into memory --- kernel/misc/elf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/misc/elf.c b/kernel/misc/elf.c index 9c0c7757..14e35514 100644 --- a/kernel/misc/elf.c +++ b/kernel/misc/elf.c @@ -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);