Hello,
I am currently writing the paging code for my little OS. I am confused about the term "mapping the last PDE to itself." It would be greatly appreciated if you could help clear up my confusion regarding the term.
Does it mean that to map the last PDE to itself would be to map all of the page tables to page table entries in the page table entry pointed to by the last page directory entry?
Thanks in advance.
Mapping last PDE to itself. Confusion.
- NickJohnson
- Member
- Posts: 1249
- Joined: Tue Mar 24, 2009 8:11 pm
- Location: Sunnyvale, California
Re: Mapping last PDE to itself. Confusion.
Effectively, yes. However, the beauty of the trick is that the page directory is the page table pointed to by the last page directory entry. The page directory and page table entry formats are compatible, so you don't have to make a page table that mirrors the page directory; simply use the page directory itself.
Re: Mapping last PDE to itself. Confusion.
Thanks. Soon I'll be on greater things like making my OS
OSDEV wiki wrote:run programs from Windows, Mac OS, Linux, and even PDP-11 programs
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
Re: Mapping last PDE to itself. Confusion.
That very much depends on your definition of the word 'soon'.kfreezen wrote:Thanks. Soon I'll be on greater things like making my OSOSDEV wiki wrote:run programs from Windows, Mac OS, Linux, and even PDP-11 programs
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Re: Mapping last PDE to itself. Confusion.
Look at my posts here.kfreezen wrote:I am currently writing the paging code for my little OS. I am confused about the term "mapping the last PDE to itself." It would be greatly appreciated if you could help clear up my confusion regarding the term.
If you have seen bad English in my words, tell me what's wrong, please.