powerpc/8xx: Add missing SPRN defines into reg_8xx.h
[sfrench/cifs-2.6.git] / arch / powerpc / include / asm / mmu-8xx.h
index f05500a29a60d6f23f4e23de99821995511ccae0..0a566f15f9850ad891b60abab8130de92eb12ecd 100644 (file)
@@ -171,9 +171,9 @@ typedef struct {
 } mm_context_t;
 #endif /* !__ASSEMBLY__ */
 
-#if (PAGE_SHIFT == 12)
+#if defined(CONFIG_PPC_4K_PAGES)
 #define mmu_virtual_psize      MMU_PAGE_4K
-#elif (PAGE_SHIFT == 14)
+#elif defined(CONFIG_PPC_16K_PAGES)
 #define mmu_virtual_psize      MMU_PAGE_16K
 #else
 #error "Unsupported PAGE_SIZE"