Problem with OS in Bochs/Qemu
Posted: Fri Jan 30, 2009 5:06 pm
Ok, before I start I would just like to say I spent a long time searching the forums and googling around before I considered posting. I then spent further time doing the same before I actually decided to click the button So lets hope that will reduce the flaming
I'm new to the idea of OS development so I decided to follow the Wiki here http://wiki.osdev.org/Bare_bones as C is my language of choice. My code matches to that on the wiki and I have followed the instructions exactly. However, running Bochs I get a stream of "you suck messages":
I then played around some more and if I use the legacy BIOS for bochs or qemu there are no errors. It goes nicely to the grub screen (which is a nice start), and then obviously wants me to load the kernel and boot the OS. But there are no drives or anything mounted so I cannot point it to a kernel file or to anything. I'm loading it from floppy.img file (made using the instructions on the wiki above), and just wondered if someone could at the least point this noob in the right direction
Many thanks!
I'm new to the idea of OS development so I decided to follow the Wiki here http://wiki.osdev.org/Bare_bones as C is my language of choice. My code matches to that on the wiki and I have followed the instructions exactly. However, running Bochs I get a stream of "you suck messages":
Code: Select all
00000321341d[CPU0 ] UndefinedOpcode: ff causes exception 6
00000321341d[CPU0 ] exception(06 h)
00000321341d[CPU0 ] interrupt(): vector = 6, INT = 0, EXT = 1
00000321342i[CPU0 ] BxError: instruction with opcode=0xff
00000321342i[CPU0 ] mod was c0, nnn was 7, rm was 7
00000321342i[CPU0 ] WARNING: Encountered an unknown instruction (signalling illegal instruction)
Many thanks!