Article View: comp.os.os2.programmer
Article #60I/O access problems!
From: Vess Kavalov
Date: Thu, 29 Oct 1992 06:51
Date: Thu, 29 Oct 1992 06:51
30 lines
1548 bytes
1548 bytes
Hello there,
I've been trying for some time to access specific I/O ports from my os/2
application, but every time I have 'access violation' error from the system.
Well, there are neither inp() nor outp() functions into the standart libraries
as far as all applications, if not particularly specified, run in run in ring3
privilege level and have no I/O access rights. So I wrote the twe functions
in assembly langugae specifying a unique segment name and in the .DEF file
for the linker I specified this segment as IOPL type and both functions' names
as EXPORTS. There are no warning or error massages during compilation and
linking, but as soon as the execution of the code reaches the first instruction
from any of these functions a 'access violation' will follow any attempt to
execute it.
What could be the problem?
How to solve this problem? Can somebody send me an example of code and
.def file that would solve this problem?
BestRegards
Jivko Koltchev :vess@cadence.com
p.s. Just to avoid some misunderstanding I would like to mention that in
the config.sys file I have the following line:
IOPL=YES
which is a standard setting anyway.
Technical Details
Message-ID:
<1992Oct29.065125.27375@Cadence.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!Cadence.COM!vessShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!Cadence.COM!vess From: vess@Cadence.COM (Vess Kavalov) Subject: I/O access problems! Message-ID: <1992Oct29.065125.27375@Cadence.COM> Keywords: I/O IOPL Organization: Cadence Design Systems, Inc. Date: Thu, 29 Oct 1992 06:51:25 GMT Lines: 33