Re: IDT & Optimization
Posted: Sun Apr 20, 2014 8:48 am
The bad luck number?? Does that mean the system detected bad luck?? (Sorry, just felt like making that distasteful joke, don't mind me)
The Place to Start for Operating System Developers
https://forum.osdev.org/
Look attentively, Bochs tells you about invalid IDT entry and even says what he finds invalid:inixsoftware wrote:So I got a Global Protection Fault. What would cause that to happen?
Would an invalid IDT trigger it?
Code: Select all
00128266044e[CPU0 ] interrupt(): gate.type(9) != {5,6,7,14,15}
00128266044e[CPU0 ] interrupt(): gate descriptor is not valid sys seg (vector=0x0d)
00128266044e[CPU0 ] interrupt(): gate descriptor is not valid sys seg (vector=0x08)Try reading Brendan's and Sortie's answers once again, you can find some possible answers to "how" question there.inixsoftware wrote:OK, I get that. However, how did an -O3 optimization cause this issue, while -O2 doesn't. That is my question.