Page 1 of 1
Triple Fault
Posted: Wed Sep 11, 2002 9:04 am
by Whatever5k
Hm, when I boot my kernel, it triple-faults. Why? I haven't set up a IDT yet, neither a exception handler. Do I have to do this? But why does the kernel triple-fault. Is there a General Protection Faul in my code?
Re:Triple Fault
Posted: Wed Sep 11, 2002 9:31 am
by Pype.Clicker
any exception that occurs before IDT setting *will* reset the CPU...
Re:Triple Fault
Posted: Wed Sep 11, 2002 9:36 am
by Whatever5k
And what is an exception, for example?
So something must be wrong in my code...what can that be?
Re:Triple Fault
Posted: Wed Sep 11, 2002 9:43 am
by Pype.Clicker
- accessing a selector that is invalid
- push/p?p without a valid ss/esp pair
- some invalid info in the GDT (setting CS with a data segment, etc)
- running some invalid opcode (*very* common when you forget the "here: jmp here" at the end of your code and sweep the whole memory until you fall in the empty bios (0xffff) area)
- division by zero
...
Re:Triple Fault
Posted: Wed Sep 11, 2002 9:58 am
by Whatever5k
Thanks!