Setting up Page Table Level 4

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
AnonymousUser
Posts: 14
Joined: Wed Jul 23, 2014 5:54 pm
Location: Bermuda Triangle

Setting up Page Table Level 4

Post 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.
alexfru
Member
Member
Posts: 1112
Joined: Tue Mar 04, 2014 5:27 am

Re: Setting up Page Table Level 4

Post 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?
AnonymousUser
Posts: 14
Joined: Wed Jul 23, 2014 5:54 pm
Location: Bermuda Triangle

Re: Setting up Page Table Level 4

Post 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??
User avatar
iansjack
Member
Member
Posts: 4709
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Setting up Page Table Level 4

Post 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.
Post Reply