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:
@@ -92,7 +92,7 @@ static inline int port_access (unsigned short port) {
|
|||||||
static short int iopl_done = 0;
|
static short int iopl_done = 0;
|
||||||
if (iopl_done) return 0;
|
if (iopl_done) return 0;
|
||||||
iopl_done = 1;
|
iopl_done = 1;
|
||||||
return iopl(1);
|
return iopl(3);
|
||||||
#else
|
#else
|
||||||
return -1; /* Error, can't access the requested port */
|
return -1; /* Error, can't access the requested port */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user