CONFIG による include の分岐は下記の通り。
- arch/x86/include/asm/pgtable.h - CONFIG_X86_32 有効 arch/x86/include/asm/pgtable_32.h - arch/x86/include/asm/pgtable_32_types.h - CONFIG_X86_PAE 有効 arch/x86/include/asm/pgtable-3level_types.h - CONFIG_X86_PAE 無効 arch/x86/include/asm/pgtable-2level_types.h - CONFIG_X86_32 無効 arch/x86/asm/pgtable_64.h - arch/x86/asm/pgtable_64_types.h
/* * entries per page directory level */ #define PTRS_PER_PTE 512
/* * the i386 is two-level, so we don't really have any * PMD directory physically. */ #define PTRS_PER_PTE 1024
/* * entries per page directory level */ #define PTRS_PER_PTE 512