mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
it's called before calling constructors so be safe
This commit is contained in:
@@ -26,7 +26,6 @@ uint64_t get_heap_used() {
|
||||
static Spinlock kmem_lock;
|
||||
|
||||
void init_kern_heap() {
|
||||
LockGuard l(kmem_lock);
|
||||
KERN_HeapBegin = static_cast<HeapEntry *>(get4k());
|
||||
allocated.fetch_add(4096);
|
||||
KERN_HeapBegin->magic = KERN_HeapMagicFree;
|
||||
|
||||
Reference in New Issue
Block a user