···34 blr35_GLOBAL(__setup_cpu_460ex)36_GLOBAL(__setup_cpu_460gt)37- b __init_fpu_44x0000038_GLOBAL(__setup_cpu_440gx)39_GLOBAL(__setup_cpu_440spe)40 b __fixup_440A_mcheck
···9394unsigned long __init mmu_mapin_ram(void)95{96- unsigned long v, s;97 phys_addr_t p;9899 v = KERNELBASE;···130 s -= LARGE_PAGE_SIZE_4M;131 }132133- return total_lowmem - s;000000000000134}
···9394unsigned long __init mmu_mapin_ram(void)95{96+ unsigned long v, s, mapped;97 phys_addr_t p;9899 v = KERNELBASE;···130 s -= LARGE_PAGE_SIZE_4M;131 }132133+ mapped = total_lowmem - s;134+135+ /* If the size of RAM is not an exact power of two, we may not136+ * have covered RAM in its entirety with 16 and 4 MiB137+ * pages. Consequently, restrict the top end of RAM currently138+ * allocable so that calls to the LMB to allocate PTEs for "tail"139+ * coverage with normal-sized pages (or other reasons) do not140+ * attempt to allocate outside the allowed range.141+ */142+143+ __initial_memory_limit_addr = memstart_addr + mapped;144+145+ return mapped;146}