[Help]: Kernel works on BOCHS not on Qemu
Re: [Help]: Kernel works on BOCHS not on Qemu
Sounds like stack corruption. I had the same problem when a certain bios call required different amount of space on stack on bochs and virtualbox, so one vm was overwriting some data below the stack, the other worked fine. Just a tip.
- LegendDairy
- Member
- Posts: 52
- Joined: Sat Nov 06, 2010 10:42 am
- Location: Antwerp (Belgium)
Re: [Help]: Kernel works on BOCHS not on Qemu
That could be it, my stack code is really primitive, I'll improve that and try again, else it'll probably be a bad pointer...turdus wrote:Sounds like stack corruption. I had the same problem when a certain bios call required different amount of space on stack on bochs and virtualbox, so one vm was overwriting some data below the stack, the other worked fine. Just a tip.
Re: [Help]: Kernel works on BOCHS not on Qemu
It could be almost anything. I had a similar problem yesterday, and it turns out it was because QEMU was lucky enough to fire the PIT interrupt right when interrupts should've been disabled but weren't (in the middle of a context switch).
Re: [Help]: Kernel works on BOCHS not on Qemu
Just a note on the "bochs works, qemu doesn't" theme: When I made a mistake in paging setup (I wrote virtual addresses instead of physical ones into the page directory), qemu correctly noticed a page fault (when accessing one of the addresses from the wrong pd entry), but bochs did not: it accessed some (which?) memory area and continued happily.