Kernel: Write to debug log when creating new kmalloc subheaps

This commit is contained in:
Andreas Kling 2021-12-26 01:25:02 +01:00
commit d58880b5b0
Notes: sideshowbarker 2024-07-17 22:10:57 +09:00

View file

@ -55,6 +55,7 @@ struct KmallocGlobalData {
void add_subheap(u8* storage, size_t storage_size)
{
dbgln("Adding kmalloc subheap @ {} with size {}", storage, storage_size);
auto* subheap = new (storage) KmallocSubheap(storage + PAGE_SIZE, storage_size - PAGE_SIZE);
subheaps.append(*subheap);
}