Add sanity check

This commit is contained in:
apio 2022-12-04 13:41:14 +01:00
parent bde3d55eb2
commit ee76bdf84d
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -185,7 +185,9 @@ Result<void*> kmalloc(usize size)
block->next = block->last = nullptr; block->next = block->last = nullptr;
heap_start = block; heap_start = block;
if (!heap_end) heap_end = heap_start; check(!heap_end);
heap_end = heap_start;
} }
HeapBlock* block = heap_start; HeapBlock* block = heap_start;