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.
Setting up Page Table Level 4
-
- Posts: 14
- Joined: Wed Jul 23, 2014 5:54 pm
- Location: Bermuda Triangle
Re: Setting up Page Table Level 4
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?
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?
-
- Posts: 14
- Joined: Wed Jul 23, 2014 5:54 pm
- Location: Bermuda Triangle
Re: Setting up Page Table Level 4
No I wasn't aware that I needed to set up a 32 bit mode page directory and tableDo you, at least, understand how to set up the regular 32-bit mode page directory and page tables for 4KB pages?
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?Specific questions, please?
What do you not understand?
And how would I initialize the table would it just be blank??
Re: Setting up Page Table Level 4
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.
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.