Page World!!
Posted: Fri Sep 06, 2002 9:19 pm
Ok, here I am, I am now ready to start on paging, I can setup a basic PMode environment. Now I need to setup paging.
Ok, I understand that the page directory holds 1024 32bit page table descriptors (dont know if they are called descriptors, but that sounds good enough), and a page table holds 1024 32bit page descriptors, to map the entire 4GB it takes 4MB of memory, 4KB for the directory, and 4KB for each of the 1024 tables. Now I know nothing, I know about the directory address going into cr3, but how does it work from here?
How do I reference a memory location?
I have seen the docs from the popular reference sites, but I would like some kind of clear example code, if anyone has some that they are willing to part with. lol
Thanks.
Ok, I understand that the page directory holds 1024 32bit page table descriptors (dont know if they are called descriptors, but that sounds good enough), and a page table holds 1024 32bit page descriptors, to map the entire 4GB it takes 4MB of memory, 4KB for the directory, and 4KB for each of the 1024 tables. Now I know nothing, I know about the directory address going into cr3, but how does it work from here?
How do I reference a memory location?
I have seen the docs from the popular reference sites, but I would like some kind of clear example code, if anyone has some that they are willing to part with. lol
Thanks.