flat assembler
Message board for the users of flat assembler.

Index > Main > long mode double fault,

Author
Thread Post new topic Reply to topic
lazer1



Joined: 24 Jan 2006
Posts: 185
lazer1 03 May 2006, 15:58
I'm trying to get long mode no-op interrupt handlers functioning, Confused

the handlers just echo the name of the handler to the screen
and return, Razz

on enabling interrupts via sti I the first interrupt is always a
double fault, Embarassed

if I make the code go into an infinite loop without returning from
the interrupt ie dont do iretq then the machine doesnt reset, Mad

iretq resets the machine. Sad

Now if I enable the interrupts and immediately after echoing
maybe 10 lines of text I switch interrupts off then
there is no interrupt not even double-fault, Very Happy

so the double-fault doesnt seem to be caused by
the the code to setup long mode,

any ideas what may be causing the double fault? Rolling Eyes

I've read + reread the code and the 64 bit TSS looks correct,
and the IDT must be correct as it is echoing double-fault,
Surprised
Post 03 May 2006, 15:58
View user's profile Send private message Reply with quote
Artlav



Joined: 23 Dec 2004
Posts: 188
Location: Moscow, Russia
Artlav 03 May 2006, 16:40
Correct is a very relative statement.

If you have a situation when you read, reread, rereread the code and see, that it's impossible that it don't work, then search for the problem in the places you're most sure of.

That's a general advice for OS-level programming, if you want specific answers, give some more details (ideally, the code).
Post 03 May 2006, 16:40
View user's profile Send private message Visit poster's website Reply with quote
lazer1



Joined: 24 Jan 2006
Posts: 185
lazer1 03 May 2006, 19:16
Artlav wrote:
Correct is a very relative statement.

If you have a situation when you read, reread, rereread the code and see, that it's impossible that it don't work, then search for the problem in the places you're most sure of.

That's a general advice for OS-level programming, if you want specific answers, give some more details (ideally, the code).


well, on reading what you said I got an idea to try out!

uploading the code will be painful so I'll try the idea first,
Post 03 May 2006, 19:16
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.