summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bdc143a)
some weird mem region reported by multiboot might be "just"
enough to house pmem_list, but not considering the L0T alignment
make it to retry instead of fold up instantly
size_t i = 0;
struct boot_mmapent* ent;
size_t i = 0;
struct boot_mmapent* ent;
- for (; i < bctx->mem.mmap_len; i++) {
- ent = &bctx->mem.mmap[i];
+
+restart:;
+ while (i < bctx->mem.mmap_len) {
+ ent = &bctx->mem.mmap[i++];
if (free_memregion(ent) && ent->size > pool_size) {
goto found;
}
if (free_memregion(ent) && ent->size > pool_size) {
goto found;
}
#endif
if (aligned_pplist + pool_size > ent->start + ent->size) {
#endif
if (aligned_pplist + pool_size > ent->start + ent->size) {
}
// for x86_32, the upper bound of memory requirement for pplist
}
// for x86_32, the upper bound of memory requirement for pplist