lmem: Implement Slab^H^H^H^HUnitHeap

This commit is contained in:
Michael Scire
2019-12-11 04:04:27 -08:00
parent 04beea44b0
commit c7fb3f7203
6 changed files with 430 additions and 1 deletions

View File

@@ -57,12 +57,12 @@ namespace ams::lmem::impl {
return end - start;
}
void InitializeHeapHead(HeapHead *out, u32 magic, void *start, void *end, u32 option);
void FinalizeHeap(HeapHead *heap);
bool ContainsAddress(HeapHandle handle, const void *address);
size_t GetHeapTotalSize(HeapHandle handle);
/* Debug Fill */
u32 GetDebugFillValue(FillType type);
u32 SetDebugFillValue(FillType type, u32 value);