git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ld-tool portability fix: MacOS build experience
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
mm
/
pmm.c
diff --git
a/lunaix-os/arch/i386/mm/pmm.c
b/lunaix-os/arch/i386/mm/pmm.c
index 7a6ef2957c10e00885b198ad88d581881728a6e4..45b7e4e303fc36084e7e156372a4af2e7a75378b 100644
(file)
--- a/
lunaix-os/arch/i386/mm/pmm.c
+++ b/
lunaix-os/arch/i386/mm/pmm.c
@@
-31,13
+31,6
@@
found:;
ptr_t kexec_end = to_kphysical(__kexec_end);
ptr_t aligned_pplist = MAX(ent->start, kexec_end);
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) {
aligned_pplist = napot_upaligned(aligned_pplist, L0T_SIZE);
if (aligned_pplist + pool_size > ent->start + ent->size) {