Recursive page directory

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
PaintedBlack

Recursive page directory

Post by PaintedBlack »

Hi!

I've got a problem with my recursive page directory (you know, mapping the page directory into itself...): I can only read out or write to the entries, which are currently mapped...or I get a page fault. But I need to write to the unmapped entries to map new pages into virtual memory, so this sucks...

I really don't have any clue, why I get a page fault...I did it nearly the same way in my previous kernel.

hmm...dunno how to express this better... :-\


Thanks in advance!
michelle ;)
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Recursive page directory

Post by Pype.Clicker »

any chance you're missing the page table for that entry too ?
or maybe you wanted to write-protect (e.g. W bit cleared in the directory entry) which also makes the mapping of the page table read-only (thus unmodifiable -- pretty nasty oddity i had in Clicker :))
PaintedBlack

Re:Recursive page directory

Post by PaintedBlack »

ahh...yeah...I was missing the page table -_-
stupid...maybe I shouldn't code for more than 6 hours ;)

thanks!
Post Reply