aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r--arch/arm/mm/mmu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index f512ad97dafe..e09744e82d50 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -591,7 +591,7 @@ static void __init create_36bit_mapping(struct map_desc *md,
591 pgd_t *pgd; 591 pgd_t *pgd;
592 592
593 addr = md->virtual; 593 addr = md->virtual;
594 phys = (unsigned long)__pfn_to_phys(md->pfn); 594 phys = __pfn_to_phys(md->pfn);
595 length = PAGE_ALIGN(md->length); 595 length = PAGE_ALIGN(md->length);
596 596
597 if (!(cpu_architecture() >= CPU_ARCH_ARMv6 || cpu_is_xsc3())) { 597 if (!(cpu_architecture() >= CPU_ARCH_ARMv6 || cpu_is_xsc3())) {
@@ -651,7 +651,8 @@ static void __init create_36bit_mapping(struct map_desc *md,
651 */ 651 */
652static void __init create_mapping(struct map_desc *md) 652static void __init create_mapping(struct map_desc *md)
653{ 653{
654 unsigned long phys, addr, length, end; 654 unsigned long addr, length, end;
655 phys_addr_t phys;
655 const struct mem_type *type; 656 const struct mem_type *type;
656 pgd_t *pgd; 657 pgd_t *pgd;
657 658
@@ -680,7 +681,7 @@ static void __init create_mapping(struct map_desc *md)
680 } 681 }
681 682
682 addr = md->virtual & PAGE_MASK; 683 addr = md->virtual & PAGE_MASK;
683 phys = (unsigned long)__pfn_to_phys(md->pfn); 684 phys = __pfn_to_phys(md->pfn);
684 length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); 685 length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK));
685 686
686 if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) { 687 if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) {