Setting Up Paging With PAE: Difference between revisions

no edit summary
[unchecked revision][unchecked revision]
No edit summary
No edit summary
Line 43:
 
PAE paging should now be enabled.
 
==FAQ==
Q: Why is it causing triple fault/page fault?
 
A: You kernel is probably not inside the first 2 MIB of the memory. You'll need to identity map your kernel.
 
Q: How do I map pages?
 
A: Firstly, align your desired virtual memory address to 1 GIB, and divide it by 1 GIB to obtain the PDPT index. Then, find the index of the page directory by aligning your desired virtual address to 2 MIB and divide it by 2 MIB. Finally, lookup the page directory entry by the index obtained in the previous step, and set the entry's address to your desired physical address that's aligned to 2 MIB.
 
[[Category:X86 CPU]]