Print this page
loader: map as much as possible using 1MB pages
Chances are that we never actually executed this bit of code since all the
maps we ever deal with are either very short or much larger than 1MB.

*** 444,454 **** if (!ARMPT_L1E_ISVALID(*pte)) { uintptr_t l2table; if (!(vstart & MMU_PAGEOFFSET1M) && !(pstart & MMU_PAGEOFFSET1M) && ! len == MMU_PAGESIZE1M) { fakeload_map_1mb(pstart, vstart, prot); vstart += MMU_PAGESIZE1M; pstart += MMU_PAGESIZE1M; len -= MMU_PAGESIZE1M; continue; --- 444,454 ---- if (!ARMPT_L1E_ISVALID(*pte)) { uintptr_t l2table; if (!(vstart & MMU_PAGEOFFSET1M) && !(pstart & MMU_PAGEOFFSET1M) && ! len >= MMU_PAGESIZE1M) { fakeload_map_1mb(pstart, vstart, prot); vstart += MMU_PAGESIZE1M; pstart += MMU_PAGESIZE1M; len -= MMU_PAGESIZE1M; continue;