diff options
Diffstat (limited to 'arch/arm/mm')
-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 8ba754064559..34e53596ff1d 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -654,7 +654,7 @@ static inline void prepare_page_table(struct meminfo *mi) | |||
654 | /* | 654 | /* |
655 | * Clear out all the mappings below the kernel image. | 655 | * Clear out all the mappings below the kernel image. |
656 | */ | 656 | */ |
657 | for (addr = 0; addr < MODULE_START; addr += PGDIR_SIZE) | 657 | for (addr = 0; addr < MODULES_VADDR; addr += PGDIR_SIZE) |
658 | pmd_clear(pmd_off_k(addr)); | 658 | pmd_clear(pmd_off_k(addr)); |
659 | 659 | ||
660 | #ifdef CONFIG_XIP_KERNEL | 660 | #ifdef CONFIG_XIP_KERNEL |
@@ -766,7 +766,7 @@ static void __init devicemaps_init(struct machine_desc *mdesc) | |||
766 | */ | 766 | */ |
767 | #ifdef CONFIG_XIP_KERNEL | 767 | #ifdef CONFIG_XIP_KERNEL |
768 | map.pfn = __phys_to_pfn(CONFIG_XIP_PHYS_ADDR & SECTION_MASK); | 768 | map.pfn = __phys_to_pfn(CONFIG_XIP_PHYS_ADDR & SECTION_MASK); |
769 | map.virtual = MODULE_START; | 769 | map.virtual = MODULES_VADDR; |
770 | map.length = ((unsigned long)&_etext - map.virtual + ~SECTION_MASK) & SECTION_MASK; | 770 | map.length = ((unsigned long)&_etext - map.virtual + ~SECTION_MASK) & SECTION_MASK; |
771 | map.type = MT_ROM; | 771 | map.type = MT_ROM; |
772 | create_mapping(&map); | 772 | create_mapping(&map); |