Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!munnari.oz.au!metro!dramba!janm From: janm@dramba.neis.oz (Jan Mikkelsen) Newsgroups: comp.os.os2.programmer Subject: Re: OS/2 device drivers Message-ID: <1991Apr13.155334.24207@dramba.neis.oz> Date: 13 Apr 91 15:53:34 GMT References: <1991Apr09.151935.19325@lut.fi> Organization: Dramba Holdings, Lindfield, Australia Lines: 18 In article <1991Apr09.151935.19325@lut.fi> cale@lut.fi (Antti Kirmanen) writes: > >I'm currently trying to write a device driver for OS/2. >My problem is, that I should use inp and outp functions to >communicate with a port. OS/2 programmers reference manual >says, that I should use DosPortAccess() function call but then ... >Program crashes allways in the first outp() or inp() call. >I'm using Microsoft C 6.0 with OS/2 1.1 > You need to do a "#pragma intrinsic" for inp() and outp() in your source code. It has been some time since I did a device driver for OS/2, but I believe this will solve your problem. -- Jan Mikkelsen janm@dramba.neis.oz.AU or janm%dramba.neis.oz@metro.ucc.su.oz.au "She really is."