]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - arch/arm/mm/mm-armv.c
[ARM] 2853/1: Make alloc_init_supersection() work with 36-bit mappings
[linux-3.10.git] / arch / arm / mm / mm-armv.c
index 3c655c54e23131b10cbf33d3d1fb1fe4a81d52be..4dae00bf7a563f5c9c101cde18536b5f48f5463d 100644 (file)
@@ -275,11 +275,9 @@ alloc_init_supersection(unsigned long virt, unsigned long phys, int prot)
        int i;
 
        for (i = 0; i < 16; i += 1) {
        int i;
 
        for (i = 0; i < 16; i += 1) {
-               alloc_init_section(virt, phys & SUPERSECTION_MASK,
-                                  prot | PMD_SECT_SUPER);
+               alloc_init_section(virt, phys, prot | PMD_SECT_SUPER);
 
                virt += (PGDIR_SIZE / 2);
 
                virt += (PGDIR_SIZE / 2);
-               phys += (PGDIR_SIZE / 2);
        }
 }
 
        }
 }