Jason Spence
2004-04-30 22:29:26 UTC
Hi -
I'm investigating a port of some old DOS-based code to Windows CE.Net
version 5. The code currently does a lot of direct I/O port access and I'm
kind of concerned that we'll have to write a full driver for the device for
our user code to interface with it. What I'd really like would be to bypass
all the I/O port protection in the I/O protection bitmap, but I have no idea
where information about how that works is located in the MSDN docs; a search
doesn't turn anything up.
As an example, I'd like to be able to do things like this from a userland
binary in the OS image:
BYTE input;
_asm {
mov dx, 0x100
in al, dx
mov input, al
}
Normally, this causes an AV. Any ideas?
I'm investigating a port of some old DOS-based code to Windows CE.Net
version 5. The code currently does a lot of direct I/O port access and I'm
kind of concerned that we'll have to write a full driver for the device for
our user code to interface with it. What I'd really like would be to bypass
all the I/O port protection in the I/O protection bitmap, but I have no idea
where information about how that works is located in the MSDN docs; a search
doesn't turn anything up.
As an example, I'd like to be able to do things like this from a userland
binary in the OS image:
BYTE input;
_asm {
mov dx, 0x100
in al, dx
mov input, al
}
Normally, this causes an AV. Any ideas?