diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2012-09-09 22:52:57 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-17 02:31:53 -0400 |
commit | 78f1dbde9fd020419313c2a0c3b602ea2427118f (patch) | |
tree | 9a5c34555b6fba6809ec33798e1aa53ce1ce0f53 /arch/powerpc/mm/pgtable_64.c | |
parent | f033d659c3b931d8b2a16625155e20304e173c9f (diff) |
powerpc/mm: Make some of the PGTABLE_RANGE dependency explicit
slice array size and slice mask size depend on PGTABLE_RANGE.
Reviewed-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/pgtable_64.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_64.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c index 297d49547ea8..e212a271c7a4 100644 --- a/arch/powerpc/mm/pgtable_64.c +++ b/arch/powerpc/mm/pgtable_64.c | |||
@@ -55,8 +55,18 @@ | |||
55 | 55 | ||
56 | #include "mmu_decl.h" | 56 | #include "mmu_decl.h" |
57 | 57 | ||
58 | unsigned long ioremap_bot = IOREMAP_BASE; | 58 | /* Some sanity checking */ |
59 | #if TASK_SIZE_USER64 > PGTABLE_RANGE | ||
60 | #error TASK_SIZE_USER64 exceeds pagetable range | ||
61 | #endif | ||
62 | |||
63 | #ifdef CONFIG_PPC_STD_MMU_64 | ||
64 | #if TASK_SIZE_USER64 > (1UL << (USER_ESID_BITS + SID_SHIFT)) | ||
65 | #error TASK_SIZE_USER64 exceeds user VSID range | ||
66 | #endif | ||
67 | #endif | ||
59 | 68 | ||
69 | unsigned long ioremap_bot = IOREMAP_BASE; | ||
60 | 70 | ||
61 | #ifdef CONFIG_PPC_MMU_NOHASH | 71 | #ifdef CONFIG_PPC_MMU_NOHASH |
62 | static void *early_alloc_pgtable(unsigned long size) | 72 | static void *early_alloc_pgtable(unsigned long size) |