Page 1 of 1

General Protection Fault on Demo 23

Posted: Sun Mar 06, 2011 6:03 am
by ATXcs1372
Even when compiling straight from demo, the system running in a Bochs vm receives a Genreal Protection fault when trying to enter user mode.

Is this because of some bug with Bochs?
Is this a known problem?

I've narrowed it down to the iretd, but have no way of further tracking it down.

Re: General Protection Fault on Demo 23

Posted: Sun Mar 13, 2011 9:15 pm
by Andyhhp
If iretd is causing the fault, then it probably means that you are trashing your stack in the ISR itself. Double check that you havnt got a mismatched push/pop instruction.

~Andrew