flat assembler
Message board for the users of flat assembler.

Index > OS Construction > R/M Excemption Hanlders

Author
Thread Post new topic Reply to topic
Hayden



Joined: 06 Oct 2005
Posts: 132
Hayden
This question my seem dumb...

Im writting some excemption handlers for a realmode kernel, my problem is I wish to know how to identify cpu excemptions from interrupt requests ie; in the typical case were an interrupt vector is shared between interrupts and excemptions.

_________________
New User.. Hayden McKay.
Post 23 May 2007, 06:28
View user's profile Send private message Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio
Hayden wrote:
This question my seem dumb...

Im writting some excemption handlers for a realmode kernel, my problem is I wish to know how to identify cpu excemptions from interrupt requests ie; in the typical case were an interrupt vector is shared between interrupts and excemptions.

do not share, you can know if it is a hardware interrupt reading the PIC registers but not if it is a software interrupt.
Also you will not get GPF because you are not in protected mode.
Post 23 May 2007, 08:12
View user's profile Send private message Visit poster's website Reply with quote
Hayden



Joined: 06 Oct 2005
Posts: 132
Hayden
So it's easy enough to look at the PIC ?

note, a #GP fault in real mode is a segment overrun fault

_________________
New User.. Hayden McKay.
Post 24 May 2007, 03:38
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.