- 論壇徽章:
- 0
|
更正一下我之前的說法。在2.6.11.1以后,Linux使用4級頁表機制。針對32位X86平臺在打開PAE以后應(yīng)該用的是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 編輯 ] |
|