Make sure the "stack_min" variable is page aligned.
--HG-- extra : convert_revision : e78c53778de83bdb2eca13d98d418b17b386ab29
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user