Invalid Opcode[SOLVED]
Posted: Mon Nov 22, 2010 2:52 am
It's been a long time since I last posted. Everything was fine after then. Now, I've encounterd the 'invalid opcode' fault. This happens only when I install the mouse handler. Sometimes, the mouse handler works fine and then suddenly generates the 'invalid opcode' fault in the middle after the mouse cursor is moved for some time.
To my surprise, this happens only when I run my OS under the AMD processor on real hardware(I've tested it under AMD duron and AMD Turion processor and both on my laptops). Amazingly, there is no problem at all when I run my OS under Bochs, Qemu, Virtual PC or under Intel Processor on real hardware. So far I've been able to figure out that the problem is the handler code(adapted from sanik's mouse driver) and as soon as I remove the mouse handler code, there's no Invalid Opcode Fault.
I'm currently trying to debug the code to see if there's some problem in the binary generated code but I'm facing difficulty to figure out the problem because of the huge bunch of the handler code.
If someone knows the workaround for this, please help!
Looking forward for help.
To my surprise, this happens only when I run my OS under the AMD processor on real hardware(I've tested it under AMD duron and AMD Turion processor and both on my laptops). Amazingly, there is no problem at all when I run my OS under Bochs, Qemu, Virtual PC or under Intel Processor on real hardware. So far I've been able to figure out that the problem is the handler code(adapted from sanik's mouse driver) and as soon as I remove the mouse handler code, there's no Invalid Opcode Fault.
I'm currently trying to debug the code to see if there's some problem in the binary generated code but I'm facing difficulty to figure out the problem because of the huge bunch of the handler code.
If someone knows the workaround for this, please help!
Looking forward for help.