Triple failting when jump to PMode

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

Triple failting when jump to PMode

Post by FlashBurn »

What could a PC triple fault when he?s jumoing to PMode? I have a right GDT and my jump is also OK! What else could it be?
drizzt

Re:Triple failting when jump to PMode

Post by drizzt »

A triple fault occurs when:

- some invalid info in GDT,
- bad IDT setup
- you try to access an invalid selector (for example load a data selector into CS),
- push/pop without a valid stack pointer,
- invalid opcode,
- DOUBLE fault exception not handled,
- ... i don't remember other things..
FlashBurn

Re:Triple failting when jump to PMode

Post by FlashBurn »

Ok, maybe someone have a look at the code. It is a bootstrap for my own filesystem. So if you don?t understand why I?m doing something in my bootstrap, please ask!

Edit::

Maybe my problem is not clear! The bootstrap is triple faulting.

you can download it at :
http://flashburn.bei.t-online.de/boot-NFS.zip
FlashBurn

Re:Triple failting when jump to PMode

Post by FlashBurn »

Ok I uploaded my old bootstrap which is working! Although there aren?t many changes (hard changes) the new code is triple faulting.

http://flashburn.bei.t-online.de/boot-NFS-old.zip
FlashBurn

Re:Triple failting when jump to PMode

Post by FlashBurn »

Ok, I found it. Thanks to all who have looked at my code. When someone is interessted in the working code I will post it!
Post Reply