Qemu crashes when enabling paging
Posted: Tue Nov 08, 2011 11:17 am
Hello,
since I started to work on an OS project of mine, called Carbon [1], I've always been using bochs for testing; now I wanted to try qemu first, before running on real hardware, but I ran into qemu crashing when setting the paging bit in CR0, after having loaded the PML4, in order to switch from protected to long mode in my loader (see loader/src/boot.s in the github repo).
To narrow down what could be causing the problem, I installed a IDT and several handlers and checked whether an interrupt is raised on enabling paging, but it wasn't.
As qemu is not as verbose as bochs on what is causing it to crash, I couldn't figure it out, yet. Would be nice, if someone checked the code.
Greeting,
Farok
[1] https://github.com/farok/Carbon
since I started to work on an OS project of mine, called Carbon [1], I've always been using bochs for testing; now I wanted to try qemu first, before running on real hardware, but I ran into qemu crashing when setting the paging bit in CR0, after having loaded the PML4, in order to switch from protected to long mode in my loader (see loader/src/boot.s in the github repo).
To narrow down what could be causing the problem, I installed a IDT and several handlers and checked whether an interrupt is raised on enabling paging, but it wasn't.
As qemu is not as verbose as bochs on what is causing it to crash, I couldn't figure it out, yet. Would be nice, if someone checked the code.
Greeting,
Farok
[1] https://github.com/farok/Carbon