PMode jumping problem
PMode jumping problem
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?
Re:PMode jumping problem
I don't know...but it sounds like something to do with the GDT or a20 gate maybe?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:PMode jumping problem
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 ...
Moreover, the GDT isn't even present in your bootsector ...
Re:PMode jumping problem
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.