Article View: comp.os.os2.programmer
Article #413IOPL or Accessing hardware ports
From: Jan Gittelman
Date: Wed, 22 Jul 1992 18:08
Date: Wed, 22 Jul 1992 18:08
21 lines
1285 bytes
1285 bytes
Hi, Has anyone managed to use IOPL to access hardware ports? I'm having trouble with it. I get an access violation (SYS3175) whenever the code tries to call a subroutine in the IOPL'd (ring 2) segment. I'm currently using a 16 bit compiler (Microsoft 6.00A) and assembler (Microsoft 5.1). There are 6 assembler subroutines that do the actual i/o and the rest of the code is written in C. I have a .DEF file to define the assembler routines segment as IOPL and list the exported subroutines. In fact, it follows the examples in both Duncan's "Advanced OS/2 Programming" and Steven Mastrianni's "Writing OS2 2.0 Device Drivers in C". If anyone has any suggestions, ideas, or information please mail me jan@dukehrl.mc.duke.edu. Thank you very much, Jan Gittelman PS. If this can be done in 32 bits (C SET/2) I'd like to know that too, since I'm not having any luck with that either. Thanks.
Technical Details
Message-ID:
<4012@news.duke.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!concert!duke!news.duke.edu!acpub.duke.edu!janShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!concert!duke!news.duke.edu!acpub.duke.edu!jan From: jan@acpub.duke.edu (Jan Gittelman) Newsgroups: comp.os.os2.programmer Subject: IOPL or Accessing hardware ports Keywords: IOPL Ring 2 Message-ID: <4012@news.duke.edu> Date: 22 Jul 92 18:08:42 GMT Sender: news@news.duke.edu Lines: 21 Nntp-Posting-Host: north1.acpub.duke.edu