* Make the ksym table built-in with kernel image, thus remove the need
[lunaix-os.git] / lunaix-os / arch / i386 / mm / pmm.c
index 7a6ef2957c10e00885b198ad88d581881728a6e4..45b7e4e303fc36084e7e156372a4af2e7a75378b 100644 (file)
@@ -31,13 +31,6 @@ found:;
     ptr_t kexec_end = to_kphysical(__kexec_end);
     ptr_t aligned_pplist = MAX(ent->start, kexec_end);
 
-    // FIXME this is a temporary hack, we need a better way to convey
-    //       the mem-map for us to settle the pplist safely
-
-    for (i = 0; i <bctx->mods.mods_num; i++) {
-        aligned_pplist = MAX(aligned_pplist, bctx->mods.entries[i].end);
-    }
-
     aligned_pplist = napot_upaligned(aligned_pplist, L0T_SIZE);
 
     if (aligned_pplist + pool_size > ent->start + ent->size) {