OUTB() and friends on Win32 and .sys files(Resent)

Marcus Meissner meissner at suse.de
Thu Feb 14 10:41:06 CST 2008

On Thu, Feb 14, 2008 at 01:55:45PM +0100, Uwe Bonnes wrote:
> Hallo,
> some programm with source uses giveio.sys to access the parallel port. You
> can find the source for giveio.sys e.g. in the avrdude package.  We
> have code in dlls/winedos/ppdev.c to emulate the directed access on the
> parallel port to accesses to /dev/ppdev. 
> However this code is not called for WIN32 code. So after starting giveio
> with loaddrv.exe supplied with giveio
> > wine loaddrv.exe start giveio
> starting giveio... ok.
> > wine javr.exe
> crashes when the outb access happens:
> =>1 0x004014b6 outb+0x6(value=0x0, port=0x378) [/spare/bon/jtagprog/win/javr-2.8/ppiwin.c:311] in javr (0x0072fe50)
> MS msvcrt.dll also supplies outb().
> What is the policy to handle outb() and friends?

We can handle such privileged opcodes in Win32 mode too, 
we do for some kernel drivers already.

For outb (or the specific exception code) it is probably not hooked correctly.

Ciao, Marcus

More information about the wine-devel mailing list