/arch/x86/include/asm/pgtable-2level_types.h

https://bitbucket.org/thekraven/iscream_thunderc-2.6.35 · C++ Header · 37 lines · 20 code · 10 blank · 7 comment · 0 complexity · caac219ff969f4a43664bdd6c2db92f9 MD5 · raw file

  1. #ifndef _ASM_X86_PGTABLE_2LEVEL_DEFS_H
  2. #define _ASM_X86_PGTABLE_2LEVEL_DEFS_H
  3. #ifndef __ASSEMBLY__
  4. #include <linux/types.h>
  5. typedef unsigned long pteval_t;
  6. typedef unsigned long pmdval_t;
  7. typedef unsigned long pudval_t;
  8. typedef unsigned long pgdval_t;
  9. typedef unsigned long pgprotval_t;
  10. typedef union {
  11. pteval_t pte;
  12. pteval_t pte_low;
  13. } pte_t;
  14. #endif /* !__ASSEMBLY__ */
  15. #define SHARED_KERNEL_PMD 0
  16. #define PAGETABLE_LEVELS 2
  17. /*
  18. * traditional i386 two-level paging structure:
  19. */
  20. #define PGDIR_SHIFT 22
  21. #define PTRS_PER_PGD 1024
  22. /*
  23. * the i386 is two-level, so we don't really have any
  24. * PMD directory physically.
  25. */
  26. #define PTRS_PER_PTE 1024
  27. #endif /* _ASM_X86_PGTABLE_2LEVEL_DEFS_H */