fix bugs found in brk & add simple security checks on lx_free
[lunaix-os.git] / lunaix-os / kernel / k_init.c
index 5896ee492633f570ff87d800313f0642dd14c2a1..444aab0e818c1433f78ea03d4973948e54a3ece6 100644 (file)
@@ -61,7 +61,7 @@ _kernel_post_init() {
         vmm_unmap_page((void*)(i << PG_SIZE_BITS));
     }
 
         vmm_unmap_page((void*)(i << PG_SIZE_BITS));
     }
 
-    assert(kalloc_init());
+    assert_msg(kalloc_init(), "Fail to initialize heap");
 }
 
 // 按照 Memory map 标识可用的物理页
 }
 
 // 按照 Memory map 标识可用的物理页