qemu triple faults on enabling paging

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
anomit
Posts: 2
Joined: Mon Jan 25, 2010 3:51 am

qemu triple faults on enabling paging

Post by anomit »

I was following James M's tutorial on kernel development till I decided to implement paging on my own after Section 5.

I took some ideas from here but now at the end of setting up page directory and page table when I try to enable paging with CR0.PG = 1, qemu triple faults. The specific code in question is here: http://github.com/anomit/mykernel/blob/ ... c/paging.c

If anyone around here has got some time on their hands, they can check out the whole tree of the code for things to make more sense at http://github.com/anomit/mykernel/tree/unstable/src/

Thanks in advance :)
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: qemu triple faults on enabling paging

Post by Gigasoft »

Looks like all the pages in the page table are marked as non-present.
anomit
Posts: 2
Joined: Mon Jan 25, 2010 3:51 am

Re: qemu triple faults on enabling paging

Post by anomit »

Dang! This is really embarassing :oops:
I don't know why I did unset_present() on the PTEs when I was actually assigning the frames.
Post Reply