三級頁表

4.3  32-BIT PAGING


0:  CR3(12-31) --> PD page address

CR3(12-31) x 4K --> PD physical address  
1:  (PD physical address + level1 offset)(12-31) --> PT page address
(PD physical address + level1 offset)(12-31) x4k --> PT physical address 
2:  (PT physical address + level2 offset)(12-31) --> real page number
3: (PT physical address + level2 offset)(12-31) x4k + page offset -->  physical address 


所有頁,都是4k對其的頁,因此,表達一個4k頁地址,只需要20位(12-31)。
表達一個4M頁地址,只需要10位。


CR3--> Address of page directory (12-31) 
PD entry --> Address of page table (12-31)
PT entry --> Address of 4KB page frame (real page number, 12-31)



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章