The stack address needs to start at the end of the allocated memory for the stack, not the beginning.
This commit is contained in:
parent
d53458023e
commit
edf3a9155b
|
@ -33,7 +33,7 @@ ThreadState::ThreadState(
|
||||||
ppc_state_.thread_state = this;
|
ppc_state_.thread_state = this;
|
||||||
|
|
||||||
// Set initial registers.
|
// Set initial registers.
|
||||||
ppc_state_.r[1] = stack_address_;
|
ppc_state_.r[1] = stack_address_ + stack_size;
|
||||||
ppc_state_.r[13] = thread_state_address_;
|
ppc_state_.r[13] = thread_state_address_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue