Matt Fleming | b73c806 | 2009-11-25 22:00:08 +0000 | [diff] [blame] | 1 | #ifndef __ASM_SH_PGTABLE_NOPMD_H |
| 2 | #define __ASM_SH_PGTABLE_NOPMD_H |
| 3 | |
| 4 | #include <asm-generic/pgtable-nopmd.h> |
| 5 | |
| 6 | /* |
| 7 | * traditional two-level paging structure |
| 8 | */ |
| 9 | |
| 10 | /* PTE bits */ |
| 11 | #define PTE_MAGNITUDE 2 /* 32-bit PTEs */ |
| 12 | |
| 13 | #define PTE_SHIFT PAGE_SHIFT |
| 14 | #define PTE_BITS (PTE_SHIFT - PTE_MAGNITUDE) |
| 15 | |
| 16 | /* PGD bits */ |
| 17 | #define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS) |
| 18 | |
| 19 | #define PTRS_PER_PGD (PAGE_SIZE / (1 << PTE_MAGNITUDE)) |
| 20 | #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE) |
| 21 | |
| 22 | #endif /* __ASM_SH_PGTABLE_NOPMD_H */ |