patch by Helmut A. Bender: use iopl(3) instead of iopl(1)

According to some googling this seems the more correct way to call iopl()
This commit is contained in:
marschap
2005-05-27 17:52:10 +00:00
parent ff290254f0
commit 79cfbc7b13
+1 -1
View File
@@ -92,7 +92,7 @@ static inline int port_access (unsigned short port) {
static short int iopl_done = 0;
if (iopl_done) return 0;
iopl_done = 1;
return iopl(1);
return iopl(3);
#else
return -1; /* Error, can't access the requested port */
#endif