🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #356

Re: Trapping 386 IO port accesses

#356
From: Todd Greenfield
Date: Tue, 01 Sep 1992 23:59
22 lines
1803 bytes
In <1992Sep1.143350.10587@ncsu.edu> dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL) writes:
>Hi.  The 386 and better can be set up to generate a general protection fault
>when a process does an IN or OUT to a specific I/O port based on an I/O
>permission bitmap in the Task State Segment, but this only works in protected
>mode where there are TSS's, not in real mode in which MS-DOS operates.  I
>guess you could write a little (not!) DOS extender that runs DOS in V86 mode
>(which is really a real mode process running within protected mode which is how
>Windows multitasks DOS applications in 386-Enhanced mode), but this would be
>extremely difficult to design properly to handle BIOS interrupts and DMA.

>Simulating interrupts would be pretty easy to do in real mode -- in your
>"custom" interrupt handler, just call any interrupt handler you want.

>Since this is your "own custom hardware", why don't you just simulate these I/O
>ports in your adapter?

what about doing this under windows?  I know nothing of windows
programming,  but wouldn't it be possible to write a windows
driver (for 386 enh mode of course) to do something like this?

I'd be interested in seeing what others think, and how one 
would go about doing it, as I have a similar need.
Technical Details
Message-ID: <tgreen.715391992@vincent2.iastate.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!news.iastate.edu!vincent2.iastate.edu!tgreen
References: <1992Aug31.191659.672@Schultz.ON.CA> <1992Sep1.143350.10587@ncsu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!news.iastate.edu!vincent2.iastate.edu!tgreen
From: tgreen@iastate.edu (Todd Greenfield)
Subject: Re: Trapping 386 IO port accesses
Message-ID: <tgreen.715391992@vincent2.iastate.edu>
Sender: news@news.iastate.edu (USENET News System)
Organization: Iowa State University, Ames IA
References: <1992Aug31.191659.672@Schultz.ON.CA> <1992Sep1.143350.10587@ncsu.edu>
Distribution: na
Date: Tue, 1 Sep 1992 23:59:52 GMT
Lines: 22