diff options
author | Marvin Borner | 2021-03-12 23:56:42 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-12 23:56:42 +0100 |
commit | e8f17844d05fdc0e44d3793dc73996c7c09e44d6 (patch) | |
tree | 5d4cae66d97f2507aad7fe86ed11867b9a939bbe /kernel/features/mm.c | |
parent | 928f2662d1469e815a7e32e04d6c68bae4a61c14 (diff) |
New memory allocation algorithms
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r-- | kernel/features/mm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c index 5fe70fd..b5fd33c 100644 --- a/kernel/features/mm.c +++ b/kernel/features/mm.c @@ -448,8 +448,6 @@ static struct memory_range kernel_memory_range(void) void memory_install(struct mem_info *mem_info) { - heap_init(HEAP_START); - for (struct mmap_boot *p = mem_info->start; (u32)(p - mem_info->start) < mem_info->size; p++) { if (p->hbase || !p->acpi || !p->type) @@ -486,10 +484,6 @@ void memory_install(struct mem_info *mem_info) memory_map_identity(&kernel_dir, memory_range_around(STACK_START - STACK_SIZE, STACK_SIZE), MEMORY_NONE); - // Map kernel heap - memory_map_identity(&kernel_dir, memory_range_around(HEAP_START, HEAP_INIT_SIZE), - MEMORY_NONE); - // TODO: Triple fault prevention? Probably bootloader stuff or something memory_map_identity(&kernel_dir, memory_range_around(0x7000, 0x1000), MEMORY_NONE); |