X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fm68knommu%2Fmm%2Finit.c;h=89f0b554ffb79fb8acfc2d62e7487f75ce61e09e;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=ce33f2f0be4bfecc2bf9f4c93e8274d6200fbd56;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/m68knommu/mm/init.c b/arch/m68knommu/mm/init.c index ce33f2f0b..89f0b554f 100644 --- a/arch/m68knommu/mm/init.c +++ b/arch/m68knommu/mm/init.c @@ -38,7 +38,6 @@ #include #include #include -#include #undef DEBUG @@ -169,7 +168,7 @@ void mem_init(void) high_memory = (void *) end_mem; start_mem = PAGE_ALIGN(start_mem); - max_mapnr = num_physpages = MAP_NR(high_memory); + max_mapnr = num_physpages = (((unsigned long) high_memory) - PAGE_OFFSET) >> PAGE_SHIFT; /* this will put all memory onto the freelists */ totalram_pages = free_all_bootmem();