triple fault (again)

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
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

triple fault (again)

Post 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
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:triple fault (again)

Post by Solar »

Uh... just about everything. Interrupt handling? Memory mapping? Kernel binary format?
Every good solution is obvious once you've found it.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:triple fault (again)

Post by bubach »

i think i got the registers right and i do cli at the begining.. mm..
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:triple fault (again)

Post 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.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:triple fault (again)

Post 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
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:triple fault (again)

Post 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?
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:triple fault (again)

Post by bubach »

not really, no.. :-)
thanks anyway, didn?t mean to be rude..

[edit: fixed it.. i had screwed up the registers..]
/ Christoffer
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Post Reply