diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-01 09:23:01 -0500 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-01 09:23:01 -0500 |
commit | 3c6e55df77bf373a5d51785afd8463bca9161c7c (patch) | |
tree | 2ca8b0b8641058b42fb13459cd8d3f260f5d7a28 /kernel/mm | |
parent | 4111fee72bcde6db229fc45b0076db8bc7407937 (diff) |
libk: kmalloc->liballoc && C->C++
Diffstat (limited to 'kernel/mm')
-rw-r--r-- | kernel/mm/virtual_mm/virtual_mm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/mm/virtual_mm/virtual_mm.cc b/kernel/mm/virtual_mm/virtual_mm.cc index ee2e78a..041459f 100644 --- a/kernel/mm/virtual_mm/virtual_mm.cc +++ b/kernel/mm/virtual_mm/virtual_mm.cc @@ -17,7 +17,7 @@ */ #include <kernel/halt.h> -#include <libk/kmalloc.h> +#include <libk/liballoc.h> #include <libk/stdio.h> #include <mm/physical_mm.h> #include <mm/virtual_mm.h> @@ -102,7 +102,7 @@ uint32_t * make_table(uint32_t *pd_entry) { uint32_t *table = 0; - if (!kmalloc_initialized()) { + if (!LibAlloc::initialized()) { /* If we don't have a dynamic memory allocator yet (this will happen only * once, when we initialize the dynamic allocator), then we hard code the * next page table to be at 7MiB */ @@ -110,7 +110,7 @@ make_table(uint32_t *pd_entry) printk("virtual_mm", "Using our hard coded table; this should happen only once."); } else - table = (uint32_t *) kmalloc(sizeof(uint32_t) * 1024); + table = (uint32_t *) LibAlloc::kmalloc(sizeof(uint32_t) * 1024); for (uint32_t i = 0; i < 1024; i++) table[i] = 0x0; |