MCPcopy Create free account
hub / github.com/Bananymous/banan-os / kmalloc_initialize

Function kmalloc_initialize

kernel/kernel/Memory/kmalloc.cpp:221–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219void kmalloc_initialize()
220{
221 auto& allocator = reinterpret_cast<BitmapAllocator*>(s_allocator_storage)[0];
222 new (&allocator) BitmapAllocator();
223 allocator.initialize_default();
224 s_allocators[0] = &allocator;
225}
226
227static void kmalloc_dump_info()
228{
229 ASSERT(s_kmalloc_lock.current_processor_has_lock());
230

Callers 1

kernel_mainFunction · 0.85

Calls 1

initialize_defaultMethod · 0.80

Tested by

no test coverage detected