General Protection Fault on Demo 23

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
ATXcs1372
Posts:5
Joined:Sat Feb 12, 2011 4:22 am
General Protection Fault on Demo 23

Post by ATXcs1372 » Sun Mar 06, 2011 6:03 am

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.

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Re: General Protection Fault on Demo 23

Post by Andyhhp » Sun Mar 13, 2011 9:15 pm

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
Image

Post Reply