Article View: comp.os.msdos.programmer
Article #26Protected Mode Interrupts
From: joseph anthony madia
Date: Thu, 29 Oct 1992 07:55
Date: Thu, 29 Oct 1992 07:55
26 lines
2097 bytes
2097 bytes
I have a question involving Protected mode for 386/486 (no 286) programming. The scenario is as follows: The program is a normal DOS executable that is designed to take COMPLETE control of the pc. (ie it has no intention of returning to dos once it is running). This program sets up a simple protected mode 32-bit operating environment solely for the purpose of experiment with the full power of the 386/486. I have a question about handling hardware IRQs in this environment. BIOS originally sets the hardware IRQs 0 -7 to use INTs 8 - 15, and IRQs 8 - 15 to use INTs 70h - 77h. The IRQ 0 - 7 assignments cause confilcts with the reserved exception INTs (ie INT 8 is reserved by Intel for Double Fault exceptions, and is also set by BIOS to receive IRQ0 hardware interrupts) How should this be handled? Is there anything that needs handling, or am I missing something in this picture. Do the IRQs have to be re-mapped to different INTs that aren't reserved by Intel (map IRQs 0-7 to INTs 32-30)? If I do have to remap the IRQs, then how do I do so in the 386 environment. I have seen the BIOS source for an AT that does the original IRQ to INT mapping, and how to accomplish this, but its written for a 286 AT and Im not sure if that will work on this machine. (PS/2 model 70 386). Any help regarding this, or Protected mode programming in general would be appreciated. Unfortunately, most of the information that I have found on Protected mode has few, if any examples. Thanks in advance... Joe Madia madia@cis.ohio-state.edu
Technical Details
Message-ID:
<1992Oct29.075500.15529@cis.ohio-state.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!gecko.cis.ohio-state.edu!madiaShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.misc Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!gecko.cis.ohio-state.edu!madia From: madia@gecko.cis.ohio-state.edu (joseph anthony madia) Subject: Protected Mode Interrupts Message-ID: <1992Oct29.075500.15529@cis.ohio-state.edu> Sender: news@cis.ohio-state.edu (NETnews ) Organization: The Ohio State University Dept. of Computer and Info. Science Date: Thu, 29 Oct 1992 07:55:00 GMT Lines: 26