Page 2 of 2

Re: No way of setting up paging

Posted: Thu Oct 24, 2019 5:00 am
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.

Re: No way of setting up paging

Posted: Thu Oct 24, 2019 5:23 am
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.