Page 1 of 1

triple fault (again)

Posted: Mon Mar 01, 2004 5:49 am
by bubach
I have a bootsector and a second stage loader. In the 2:th stage loader i set a20 and pmode. I then jmp to the kernel at 1 mb.
Then the kernel triple faults... What are the possible things that could be wrong?

/ Christoffer

Re:triple fault (again)

Posted: Mon Mar 01, 2004 5:52 am
by Solar
Uh... just about everything. Interrupt handling? Memory mapping? Kernel binary format?

Re:triple fault (again)

Posted: Mon Mar 01, 2004 6:03 am
by bubach
i think i got the registers right and i do cli at the begining.. mm..

Re:triple fault (again)

Posted: Mon Mar 01, 2004 6:24 am
by distantvoices
one tip for the debugging:

1. use box debug.

2. place some 'hlt' instructions at crucial places in your code.

3. or write some letters to arbitrary locations in video memory 0xb8000, a letter for each station in execution of your code. That's the way I got round some hounds of hell (=errors) in my code.

Re:triple fault (again)

Posted: Mon Mar 01, 2004 6:33 am
by bubach
yeah, thats i great idea... </irony= off>
last time i used that it outputed 1,5 gig of debug ****..
no thanks, i think i just have to find it for myself.. :-)

/ Christoffer

Re:triple fault (again)

Posted: Mon Mar 01, 2004 6:36 am
by distantvoices
*g*

Not if a triple fault occurs, gosh. box then just craps out and leaves you alone with a fine nice cpu status dump.

you could also set break points, hm?

I've never got so much as 1,5 gig of debug message crap.

besides: Have you put your eyes over the rest of my message?

Re:triple fault (again)

Posted: Mon Mar 01, 2004 6:41 am
by bubach
not really, no.. :-)
thanks anyway, didn?t mean to be rude..

[edit: fixed it.. i had screwed up the registers..]
/ Christoffer