Page Fault Handling

OS Design, Theory, and Programming

Moderator:Moderators

oib111
Posts:38
Joined:Sat Aug 29, 2009 6:44 am
Page Fault Handling

Post by oib111 » Sun Oct 18, 2009 5:58 pm

So I setup a page-fault handler, but after the page-fault occurs and my handler runs a GPF occurs. Is this happening because the page isn't properly mapped? Also, if you have a non present page stored in a page file, how do figure out where in the page file is the page you want to map when a page fault occurs?

EDIT:

I don't think it's because it isn't properly mapped. I added a line of code right before the end of my function to map nonpresent pages that accesses the page that was mapped. If the page isn't mapped then another page-fault would occur, but another page-fault didn't occur...so...?

Post Reply