From cd18b702a646e06c2923c8298e3e67716361536c Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 29 Jul 2019 19:21:01 -0500 Subject: [PATCH] [Kernel] Implement ExAllocatePool. --- src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc index 177398fc0..1609b7f70 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_memory.cc @@ -543,6 +543,12 @@ dword_result_t ExAllocatePoolTypeWithTag(dword_t size, dword_t tag, } DECLARE_XBOXKRNL_EXPORT1(ExAllocatePoolTypeWithTag, kMemory, kImplemented); +dword_result_t ExAllocatePool(dword_t size) { + const uint32_t none = 0x656E6F4E; // 'None' + return ExAllocatePoolTypeWithTag(size, none, 0); +} +DECLARE_XBOXKRNL_EXPORT1(ExAllocatePool, kMemory, kImplemented); + void ExFreePool(lpvoid_t base_address) { kernel_state()->memory()->SystemHeapFree(base_address); }