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
triple fault (again)
Re:triple fault (again)
Uh... just about everything. Interrupt handling? Memory mapping? Kernel binary format?
Every good solution is obvious once you've found it.
Re:triple fault (again)
i think i got the registers right and i do cli at the begining.. mm..
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:triple fault (again)
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.
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
BlueillusionOS iso image
Re:triple fault (again)
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
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
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:triple fault (again)
*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?
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
BlueillusionOS iso image
Re:triple fault (again)
not really, no..
thanks anyway, didn?t mean to be rude..
[edit: fixed it.. i had screwed up the registers..]
/ Christoffer
thanks anyway, didn?t mean to be rude..
[edit: fixed it.. i had screwed up the registers..]
/ Christoffer