[linux-yocto] [PATCH 12/18] arm: mmu: Fix truncated 40-bit physaddr (LPAE)

Charlie Paul cpaul.windriver at gmail.com
Tue Feb 18 09:26:42 PST 2014

From: Anders Berg <anders.berg at lsi.com>

Wrong type for parameter 'phys' caused adress to be truncated to 32-bits,
causing iotable_init() to produce wrong MMU mappings on LPAE system.

Signed-off-by: Anders Berg <anders.berg at lsi.com>
 arch/arm/mm/mmu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index daf336f..253f85e 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -675,7 +675,7 @@ static void __init alloc_init_pmd(pud_t *pud, unsigned long addr,
 static void __init alloc_init_pud(pgd_t *pgd, unsigned long addr,
-	unsigned long end, unsigned long phys, const struct mem_type *type)
+		unsigned long end, phys_addr_t phys, const struct mem_type *type)
 	pud_t *pud = pud_offset(pgd, addr);
 	unsigned long next;

More information about the linux-yocto mailing list