elf: increase stack size of new processes to around 8 mb

This commit is contained in:
Matheus
2022-10-11 23:32:55 -03:00
parent 0e4c9e17bf
commit ef6aae4a39
+1 -1
View File
@@ -111,7 +111,7 @@ static void* stacksetup(char** argv, char** env, auxv64_list auxv){
// allocate memory for the initial section of the stack
// XXX demand alloc the non initialised stack pages
if(!vmm_allocnowat(STACK_TOP - initialsize - PAGE_SIZE*200, ARCH_MMU_MAP_READ | ARCH_MMU_MAP_WRITE | ARCH_MMU_MAP_NOEXEC | ARCH_MMU_MAP_USER, initialsize + PAGE_SIZE*200)) return NULL;
if(!vmm_allocnowat(STACK_TOP - initialsize - PAGE_SIZE*2000, ARCH_MMU_MAP_READ | ARCH_MMU_MAP_WRITE | ARCH_MMU_MAP_NOEXEC | ARCH_MMU_MAP_USER, initialsize + PAGE_SIZE*2000)) return NULL;
// get the addresses to copy the data to