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;
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user