Page Fault Handling

OS Design, Theory, and Programming

Moderator: Moderators

Page Fault Handling

Postby 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...?
oib111
 
Posts: 38
Joined: Sat Aug 29, 2009 6:44 am

Return to Advanced OS Development

Who is online

Users browsing this forum: No registered users and 3 guests

cron