Page 1 of 1

Recursive page directory

Posted: Wed Aug 09, 2006 6:37 am
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 ;)

Re:Recursive page directory

Posted: Wed Aug 09, 2006 8:54 am
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 :))

Re:Recursive page directory

Posted: Wed Aug 09, 2006 9:54 am
by PaintedBlack
ahh...yeah...I was missing the page table -_-
stupid...maybe I shouldn't code for more than 6 hours ;)

thanks!