Page 1 of 1

Setting up Page Table Level 4

Posted: Fri Aug 08, 2014 10:42 pm
by AnonymousUser
Hello All, I have been looking into how to go into long mode and wanted to understand more about setting a page table before I implement anything I understand that there are other threads concerning this but I had trouble understanding it. Note: Currently my bootloader boots into protected mode just fine. Could you guys explain the proccess of how I would go about doing this ??
Thank you for your time.

Re: Setting up Page Table Level 4

Posted: Fri Aug 08, 2014 11:07 pm
by alexfru
Specific questions, please?
What do you not understand?
Do you, at least, understand how to set up the regular 32-bit mode page directory and page tables for 4KB pages?

Re: Setting up Page Table Level 4

Posted: Fri Aug 08, 2014 11:36 pm
by AnonymousUser
Do you, at least, understand how to set up the regular 32-bit mode page directory and page tables for 4KB pages?
No I wasn't aware that I needed to set up a 32 bit mode page directory and table
Specific questions, please?
What do you not understand?
What I really don't understand is how I would map tan entry to a physical address when I am running the bootloader in a virtual machine rather than on real hardware?
And how would I initialize the table would it just be blank??

Re: Setting up Page Table Level 4

Posted: Sat Aug 09, 2014 12:00 am
by iansjack
I think that you first need to read the Intel Programmer's Manual, which describes in detail how paging works and is set up. Come back and ask again if there are specific points that need further explanation.

Personally, I don't consider "How do I do paging" to be a specific enough question for these forums.

In answer to the two questions that you asked:

1. A VM is no different to physical hardware for these purposes.

2. Yes, you need to initialize the page tables before enabling paging.