diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2015-04-17 18:37:17 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-06-02 21:37:23 -0500 |
commit | 86c3b16e9f330c94062c40302ab266f0d932057e (patch) | |
tree | 1bcef98b94c3f0b50df546b372fd4f8e39b61cfb | |
parent | 9b6179dc1e1a481026ce7b9222275727ec76aef4 (diff) | |
download | linux-86c3b16e9f330c94062c40302ab266f0d932057e.tar.gz linux-86c3b16e9f330c94062c40302ab266f0d932057e.tar.bz2 linux-86c3b16e9f330c94062c40302ab266f0d932057e.zip |
powerpc/8xx: mmu_virtual_psize incorrect for 16k pages
mmu_virtual_psize shall be set to MMU_PAGE_16K when 16k pages have
been selected
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
-rw-r--r-- | arch/powerpc/include/asm/mmu-8xx.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/mmu-8xx.h b/arch/powerpc/include/asm/mmu-8xx.h index 986b9e1e1044..d41200c01d85 100644 --- a/arch/powerpc/include/asm/mmu-8xx.h +++ b/arch/powerpc/include/asm/mmu-8xx.h @@ -145,7 +145,14 @@ typedef struct { } mm_context_t; #endif /* !__ASSEMBLY__ */ +#if (PAGE_SHIFT == 12) #define mmu_virtual_psize MMU_PAGE_4K +#elif (PAGE_SHIFT == 14) +#define mmu_virtual_psize MMU_PAGE_16K +#else +#error "Unsupported PAGE_SIZE" +#endif + #define mmu_linear_psize MMU_PAGE_8M #endif /* _ASM_POWERPC_MMU_8XX_H_ */ |