]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: i386-io-sunos.h: Implement intel_cleanup_io
authorPali Rohár <pali@kernel.org>
Tue, 20 Feb 2024 17:44:06 +0000 (18:44 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 24 Feb 2024 19:47:05 +0000 (20:47 +0100)
Call 'sysi86(SI86V86, V86SC_IOPL, 0);' - same what is X11 and FlashROM doing.

lib/i386-io-sunos.h

index 99fd5766a01e691665227a085f773c550ab30676..1caefd55b4bf1deaf1d736c581234b6906cd8226 100644 (file)
@@ -23,7 +23,7 @@ intel_setup_io(struct pci_access *a UNUSED)
 static inline void
 intel_cleanup_io(struct pci_access *a UNUSED)
 {
-  /* FIXME: How to switch off I/O port access? */
+  sysi86(SI86V86, V86SC_IOPL, 0);
 }
 
 static inline void intel_io_lock(void)