[Kernel] Implement ObCreateObject

This commit is contained in:
disjtqz
2023-10-15 12:33:54 -04:00
committed by Radosław Gliński
parent d8aa14da73
commit 275454089e
8 changed files with 298 additions and 21 deletions

View File

@@ -608,13 +608,13 @@ uint32_t Memory::SystemHeapAlloc(uint32_t size, uint32_t alignment,
return address;
}
void Memory::SystemHeapFree(uint32_t address) {
void Memory::SystemHeapFree(uint32_t address, uint32_t* out_region_size) {
if (!address) {
return;
}
// TODO(benvanik): lightweight pool.
auto heap = LookupHeap(address);
heap->Release(address);
heap->Release(address, out_region_size);
}
void Memory::DumpMap() {