]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/mm/mem.c
powerpc/e6500: TLB miss handler with hardware tablewalk support
[~andy/linux] / arch / powerpc / mm / mem.c
index 3fa93dc7fe750a9f53c875493b969f1962bea9af..94448cd4b444d4ddd4e47ec3a05e7c95fea25ab4 100644 (file)
@@ -307,6 +307,12 @@ static void __init register_page_bootmem_info(void)
 
 void __init mem_init(void)
 {
+       /*
+        * book3s is limited to 16 page sizes due to encoding this in
+        * a 4-bit field for slices.
+        */
+       BUILD_BUG_ON(MMU_PAGE_COUNT > 16);
+
 #ifdef CONFIG_SWIOTLB
        swiotlb_init(0);
 #endif