PMode jumping problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
FlashBurn

PMode jumping problem

Post by FlashBurn »

I have some test code to jump into PMode, but I get a failure(triple fault) "jump_protected: gate type 0 unsupported"! What does this mean?
jrfritz

Re:PMode jumping problem

Post by jrfritz »

I don't know...but it sounds like something to do with the GDT or a20 gate maybe?
FlashBurn

Re:PMode jumping problem

Post by FlashBurn »

[attachment deleted by admin]
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:PMode jumping problem

Post by Pype.Clicker »

Your GDT registers aren't loaded properly. ldgt will load the base address with 0, which is unlikely to be right.
Moreover, the GDT isn't even present in your bootsector ...
FlashBurn

Re:PMode jumping problem

Post by FlashBurn »

No its in the kernel. I load 10 sectors, start with the 2nd. The first thing there is now the GDT and when this is working there will also be the IDT.
Post Reply