powerepc/book3s64/hash: Align start/end address correctly with bolt mapping
[linux-2.6-microblaze.git] / arch / powerpc / mm / book3s64 / radix_pgtable.c
index d5f0c10..5c8adeb 100644 (file)
@@ -276,6 +276,7 @@ static int __meminit create_physical_mapping(unsigned long start,
        int psize;
 
        start = ALIGN(start, PAGE_SIZE);
+       end   = ALIGN_DOWN(end, PAGE_SIZE);
        for (addr = start; addr < end; addr += mapping_size) {
                unsigned long gap, previous_size;
                int rc;