ARC: mm: support 3 levels of page tables
[linux-2.6-microblaze.git] / arch / arc / mm / init.c
index c083bf6..f7ba2a5 100644 (file)
@@ -189,6 +189,10 @@ void __init mem_init(void)
 {
        memblock_free_all();
        highmem_init();
+
+       BUILD_BUG_ON((PTRS_PER_PGD * sizeof(pgd_t)) > PAGE_SIZE);
+       BUILD_BUG_ON((PTRS_PER_PMD * sizeof(pmd_t)) > PAGE_SIZE);
+       BUILD_BUG_ON((PTRS_PER_PTE * sizeof(pte_t)) > PAGE_SIZE);
 }
 
 #ifdef CONFIG_HIGHMEM