pgtable_nopmd.h 493 B

12345678910111213141516171819202122
  1. #ifndef __ASM_SH_PGTABLE_NOPMD_H
  2. #define __ASM_SH_PGTABLE_NOPMD_H
  3. #include <asm-generic/pgtable-nopmd.h>
  4. /*
  5. * traditional two-level paging structure
  6. */
  7. /* PTE bits */
  8. #define PTE_MAGNITUDE 2 /* 32-bit PTEs */
  9. #define PTE_SHIFT PAGE_SHIFT
  10. #define PTE_BITS (PTE_SHIFT - PTE_MAGNITUDE)
  11. /* PGD bits */
  12. #define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS)
  13. #define PTRS_PER_PGD (PAGE_SIZE / (1 << PTE_MAGNITUDE))
  14. #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
  15. #endif /* __ASM_SH_PGTABLE_NOPMD_H */