Booting kernel in Qemu make General Protection Fault
Posted: Tue Jul 16, 2013 3:37 am
I've created a C kernel and I create a bootable iso file using grub-mkrescue utility. When I tried running the kernel with the command Its giving General Protection Fault. Kernel was fine if I didn't enable the interrupts with ("sti").
I tried the binary(this binary is used to generate bootable iso using grub-mkrescue) generated after the compiling and linking with option then the kernel is working as expected in emulator(Enabled the interrupt and Installed a timer which is working fine ). Is there any reason for this behavior?
Code: Select all
qemu-i386 -cdrom myos.iso
I tried the binary(this binary is used to generate bootable iso using grub-mkrescue) generated after the compiling and linking with
Code: Select all
qemu-i386 -kernel myos.bin