From c667dfc596012e6e74f9d393643d152c65965e65 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 16 Feb 2016 15:05:11 -0800 Subject: [PATCH] Don't put kernel stacks in GPU memory. --- src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc index c7db380ec..3a7c5e894 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc @@ -568,7 +568,7 @@ dword_result_t MmCreateKernelStack(dword_t stack_size, dword_t r4) { uint32_t stack_address; kernel_memory() ->LookupHeap(0x70000000) - ->AllocRange(0x70000000, 0x7FFFFFFF, stack_size_aligned, stack_alignment, + ->AllocRange(0x70000000, 0x7F000000, stack_size_aligned, stack_alignment, kMemoryAllocationReserve | kMemoryAllocationCommit, kMemoryProtectRead | kMemoryProtectWrite, false, &stack_address);