No way of setting up paging

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
iansjack
Member
Member
Posts: 4705
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: No way of setting up paging

Post by iansjack »

That's exactly what it covers - how to manipulate page tables, either the current one or another one. You should read the articles I linked to there.
User avatar
~
Member
Member
Posts: 1227
Joined: Tue Mar 06, 2007 11:17 am
Libera.chat IRC: ArcheFire

Re: No way of setting up paging

Post by ~ »

abcd wrote:
iansjack wrote:Perhaps you should read this recent thread: viewtopic.php?f=1&t=35110
Thank you for the suggestion, but it still doesn’t cover how to allocate a new page directory...
You can keep an array of CR3 page directory values. If an element contains 0, you can add a page address to create a new directory.

You just need to keep track of free physical pages with a bitmap at least.

Then with your visor page table you can map around unmapped pages to initialize a completely new page directory.
YouTube:
http://youtube.com/@AltComp126

My x86 emulator/kernel project and software tools/documentation:
http://master.dl.sourceforge.net/projec ... ip?viasf=1
Post Reply