Make sure the "stack_min" variable is page aligned.

--HG--
extra : convert_revision : e78c53778de83bdb2eca13d98d418b17b386ab29
This commit is contained in:
Gabe Black 2006-12-20 15:44:37 -05:00
parent 5b41ab694c
commit 841d76d37b

View file

@ -432,5 +432,8 @@ SparcLiveProcess::argsInit(int intSize, int pageSize)
threadContexts[0]->setNextPC(prog_entry + sizeof(MachInst));
threadContexts[0]->setNextNPC(prog_entry + (2 * sizeof(MachInst)));
//Align the "stack_min" to a page boundary.
stack_min = roundDown(stack_min, pageSize);
// num_processes++;
}