it's called before calling constructors so be safe

This commit is contained in:
2023-10-21 16:48:12 +02:00
parent e94f012f27
commit 83a2340944

View File

@@ -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;