Re: What happens when a port is read/write 16/32 bits at a time to an I/O port on a x86 processor?
Posted on 2015-08-29, 11:18
I've currently programmed by I/O operations like this: 32-Bit: Try 32-bit. If fails or unaligned, call 16-bit. 16-Bit: Try 16-bit. If fails or unaligned, call 8-bit. 8-Bit: Try 8-bit. If fails, log if enabled. So the call path with all failing is: 32-Bit->16-Bit->8-Bit->Log. 16-Bit->8-Bit->Log. 8- …