mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
Kernel: Write to debug log when creating new kmalloc subheaps
This commit is contained in:
parent
16850423cf
commit
d58880b5b0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue