home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / msdos / programm / 2310 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.9 KB  |  43 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watserv1!Schultz.ON.CA!peter
  3. From: peter@Schultz.ON.CA (Peter Roeser)
  4. Subject: Re: Trapping 386 IO port accesses
  5. Message-ID: <1992Sep03.154303.814@Schultz.ON.CA>
  6. Organization: S-S Technologies Inc.
  7. References: <1992Aug31.191659.672@Schultz.ON.CA> <1992Sep1.143350.10587@ncsu.edu>
  8. Distribution: na
  9. Date: Thu, 03 Sep 1992 15:43:03 GMT
  10. Lines: 31
  11.  
  12. In article <1992Sep1.143350.10587@ncsu.edu> dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL) writes:
  13. >
  14. >Hi.  The 386 and better can be set up to generate a general protection fault
  15. >when a process does an IN or OUT to a specific I/O port based on an I/O
  16. >permission bitmap in the Task State Segment, but this only works in protected
  17. >mode where there are TSS's, not in real mode in which MS-DOS operates.  I
  18. >guess you could write a little (not!) DOS extender that runs DOS in V86 mode
  19. >(which is really a real mode process running within protected mode which is how
  20. >Windows multitasks DOS applications in 386-Enhanced mode), but this would be
  21. >extremely difficult to design properly to handle BIOS interrupts and DMA.
  22. >
  23. >Simulating interrupts would be pretty easy to do in real mode -- in your
  24. >"custom" interrupt handler, just call any interrupt handler you want.
  25. >
  26. >Since this is your "own custom hardware", why don't you just simulate these I/O
  27. >ports in your adapter?
  28.  
  29.    I would like to find a software only solution if possible.
  30.    The software that needs to do the IO trapping will be put into
  31.    existing 386 machines and we would like to avoid modifying
  32.    them by adding cards etc. 
  33. >
  34. >Tschuess,
  35. >David Paschal
  36.  
  37.  
  38. -- 
  39. Peter Roeser                 | peter@Schultz.ON.CA
  40. S-S Technologies Inc.        | uunet.uu.net!watserv1.uwaterloo.ca!schultz!peter
  41. 88 Ardelt Avenue             | voice: (519) 571-1434 x227
  42. Kitchener, ON Canada N2C 2C9 | FAX:   (519) 743-3610
  43.