- 论坛徽章:
- 0
|
更正一下我之前的说法。在2.6.11.1以后,Linux使用4级页表机制。针对32位X86平台在打开PAE以后应该用的是3级页表,否则是两级,其中PUD,PMD两级均被跳过
在Pgtable.h中有如下代码
/*
* The Linux x86 paging architecture is 'compile-time dual-mode', it
* implements both the traditional 2-level x86 page tables and the
* newer 3-level PAE-mode page tables.
*/
#ifdef CONFIG_X86_PAE
# include <asm/pgtable-3level-defs.h>
# define PMD_SIZE (1UL << PMD_SHIFT)
# define PMD_MASK (~(PMD_SIZE-1))
#else
# include <asm/pgtable-2level-defs.h>
#endif
[ 本帖最后由 dengcainiao 于 2008-4-1 16:25 编辑 ] |
|