feat: implemented liballoc for proper malloc

This commit is contained in:
2021-02-27 13:19:14 +01:00
parent 9f72d4bb1a
commit 9fdc89a3a6
6 changed files with 825 additions and 80 deletions

View File

@@ -29,7 +29,7 @@ void init_mmap(multiboot_info_t *multiboot_info) {
if (multiboot_info->flags & (1 << 6)) {
mmap_init_multiboot((struct multiboot_mmap_entry *) multiboot_info->mmap_addr,
multiboot_info->mmap_length / sizeof(struct multiboot_mmap_entry));
malloc_init();
// malloc_init();
// todo fallback on other mechanisms?
} else {
k_panics("mmap invalid!\n");