🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #1896

interrupts on 80286

#1896
From: Mike Holder
Date: Thu, 20 Apr 1989 14:55
30 lines
1919 bytes
Apologies if you've seen this before, but I think my news posting program
trashed my last attempt.


I'm developing an Operating System on an 80286, and I'm having some problems
handling interrupts.  Here's the setup:

Processor runs in Protected Mode with processes running with privilege level
3 using the large memory model and the kernel running with privilege level 0
in the small memory model.  We handle device interrupts through a Programmable
Interrupt Controller, and these device interrupts are handled via Interrupt
Gates in the Interrupt Descriptor Table.  Interrupt Gates are supposed to
disable interrupts (zero the Interrupt Flag) when an interrupt is handled.
However, I have a logic analyzer trace that shows a clock interrupt being
handled by the kernel, and another (tty character) interrupt comes in just
as the clock interrupt handling routine gets started.  Since the kernel
was architected assuming interrupts were locked out once the kernel was
reached, the kernel ends up crashing later on when it attempts to return
to the interrupted process.

So, how can the processor get a second interrupt in once the first interrupt
vectors through an Interrupt Gate?  Is there some window of time between
the hardware reading the Interrupt Gate and the time interrupts actually get
disabled?  Any help would be appreciated.

Mike Holder				holder@druhi.att.com
AT&T Bell Laboratories			..!att!druhi!holder
12110 N. Pecos Street
Denver, CO 80234			(303) 538-3929
Technical Details
Message-ID: <4173@druhi.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!pprg.unm.edu!unmvax!deimos.cis.ksu.edu!rutgers!att!mtuxo!mtgzz!drutx!druhi!holder

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!pprg.unm.edu!unmvax!deimos.cis.ksu.edu!rutgers!att!mtuxo!mtgzz!drutx!druhi!holder
From: holder@druhi.ATT.COM (Mike Holder)
Newsgroups: comp.sys.intel
Subject: interrupts on 80286
Keywords: 286 interrupts gates
Message-ID: <4173@druhi.ATT.COM>
Date: 20 Apr 89 14:55:07 GMT
Distribution: comp
Organization: AT&T, Denver, CO
Lines: 30