From 5ca8caa9a76a559aa072b54de76e0254e495ecf7 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 28 Jun 2015 14:34:11 -0700 Subject: [PATCH] Allowing thread stacks from the entire 0x4-0x7 range. --- src/xenia/cpu/thread_state.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/thread_state.cc b/src/xenia/cpu/thread_state.cc index dd1051127..a839ba8cc 100644 --- a/src/xenia/cpu/thread_state.cc +++ b/src/xenia/cpu/thread_state.cc @@ -67,8 +67,8 @@ ThreadState::ThreadState(Processor* processor, uint32_t thread_id, break; } memory() - ->LookupHeap(0x70000000) - ->AllocRange(0x70000000, 0x7FFFFFFF, actual_stack_size, stack_alignment, + ->LookupHeap(0x40000000) + ->AllocRange(0x40000000, 0x7FFFFFFF, actual_stack_size, stack_alignment, kMemoryAllocationReserve | kMemoryAllocationCommit, kMemoryProtectRead | kMemoryProtectWrite, top_down, &stack_address_);