diff options
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r-- | arch/arm/mm/mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 02e050ae59f6..3b5e47dc0c97 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -527,9 +527,9 @@ void __init create_mapping(struct map_desc *md) | |||
527 | return; | 527 | return; |
528 | } | 528 | } |
529 | 529 | ||
530 | addr = md->virtual; | 530 | addr = md->virtual & PAGE_MASK; |
531 | phys = (unsigned long)__pfn_to_phys(md->pfn); | 531 | phys = (unsigned long)__pfn_to_phys(md->pfn); |
532 | length = PAGE_ALIGN(md->length); | 532 | length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK)); |
533 | 533 | ||
534 | if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) { | 534 | if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) { |
535 | printk(KERN_WARNING "BUG: map for 0x%08lx at 0x%08lx can not " | 535 | printk(KERN_WARNING "BUG: map for 0x%08lx at 0x%08lx can not " |