Page 1 of 1
"Invalid Opcode"
Posted: Wed Jun 22, 2005 11:00 pm
by kinghajj
When I run my OS on an AMD processor (AMD Athlon XP 2600, to be exact), I get an "Invalid Opcode" hardware interrupt error. However, when I run my OS on an Intel processor (an Intel Celeron 233 Mhz and an Intel Pentium 4 2.6 Ghz), everything works fine. What does "Invalid Opcode" mean, and how can I fix it?
Re:
Posted: Thu Jun 23, 2005 11:00 pm
by Legend
An invalid opcode exception happens when the cpu hits an instruction that it does not know. It would be helpful if you know the location of the opcode that is unknown (meaning, the EIP that caused the exception). Then you can hopefully find out which instruction should have run using a disassembler.
Re:
Posted: Thu Jun 23, 2005 11:00 pm
by kinghajj
I solved the problem (sorta). I started using GRUB, and compiling my kernel as an ELF binary (instead of a flat binary), and it works now.