Invalid Opcode
Posted: Thu Nov 03, 2011 11:28 am
Hey! I'm a long time stalker here, working on my own OS.
Anyway, I have an consistent issue that happens on all our pc's in my house (6 pc's), on every after bootloader jumps to my kernel, i get an Invalid Opcode Exception. However my kernel works just fine in VMWare Player, Bochs, VirtualPC.
I've read several topics here by searching that this might be caused by me having Optimization set to /Ox in visual studio. (Kernel is in VC++).
Now here is my question, if this might be the case, how important is it to actually have the max optimization included? I'm thinking about turning it completely off to avoid any surprises. But i would also be willingly to debug out which instruction it is that causes this if it is smart to enable max Optimization level.
Thanks, Philip.
Anyway, I have an consistent issue that happens on all our pc's in my house (6 pc's), on every after bootloader jumps to my kernel, i get an Invalid Opcode Exception. However my kernel works just fine in VMWare Player, Bochs, VirtualPC.
I've read several topics here by searching that this might be caused by me having Optimization set to /Ox in visual studio. (Kernel is in VC++).
Now here is my question, if this might be the case, how important is it to actually have the max optimization included? I'm thinking about turning it completely off to avoid any surprises. But i would also be willingly to debug out which instruction it is that causes this if it is smart to enable max Optimization level.
Thanks, Philip.