:: commit 14037f4dc5079ba0622795ef3d17250b38c3cebe

mintsuki <mintsuki@protonmail.com> — 2023-09-16 20:51

parents: f7368f8abf

limine: Fix up junk introduced by 303592f9e7d2a214f2ae00e909163106d8dca56a

diff --git a/common/protos/limine.c b/common/protos/limine.c
index f371e7f2..b786f8c8 100644
--- a/common/protos/limine.c
+++ b/common/protos/limine.c
@@ -63,18 +63,16 @@ static pagemap_t build_pagemap(int paging_mode, bool nx, struct elf_range *range
         }
     }
 
-    size_t _memmap_entries = memmap_entries;
-    struct memmap_entry *_memmap =
-        ext_mem_alloc(_memmap_entries * sizeof(struct memmap_entry));
-    for (size_t i = 0; i < _memmap_entries; i++)
-        _memmap[i] = memmap[i];
-
     // Map 0->4GiB range to HHDM
     for (uint64_t i = 0; i < 0x100000000; i += 0x40000000) {
         map_page(pagemap, direct_map_offset + i, i, VMM_FLAG_WRITE, Size1GiB);
     }
 
-    print_memmap(memmap, memmap_entries);
+    size_t _memmap_entries = memmap_entries;
+    struct memmap_entry *_memmap =
+        ext_mem_alloc(_memmap_entries * sizeof(struct memmap_entry));
+    for (size_t i = 0; i < _memmap_entries; i++)
+        _memmap[i] = memmap[i];
 
     // Map all free memory regions to the higher half direct map offset
     for (size_t i = 0; i < _memmap_entries; i++) {
tab: 248 wrap: offon