Hello,
I am currently improving my paging code. I was curious as to how I should access the tables themselves, since the cpu can only use physical address for these tables. I have been accessing them via physical addresses, as the first 4MB are identity mapped. Thank you for your help.
How do I access pages
Re: How do I access pages
Map the pages you want to access in your page table. Then you can access them using virtual addresses.
Re: How do I access pages
You might want to look into recursive paging.
Re: How do I access pages
This article: https://os.phil-opp.com/paging-implementation/ discusses the problem, and various solutions. I favour the "Map the Complete Physical Memory" approach.
Re: How do I access pages
Thank you for your help. I have decided to use recursive paging and it works quite well for me.