Page 1 of 1

How do you access I/O ports in 32 bit protected mode?

Posted: Tue Apr 27, 2004 11:00 pm
by madmatt
How would you access I/O ports in protected mode? I've read that you would need a TSS selector setup with and I/O bitmap set to all 1's or something like that.  How would you go about setting this up?
thanx
Matt

RE:How do you access I/O ports in 32 bit protected mode?

Posted: Tue Apr 27, 2004 11:00 pm
by common
You could either do that (you'll need to read the Intel documents about TSS, they're quite lengthy)...or, the easier way, just set IOPL in the EFLAGS of the process to match its CPL.