summaryrefslogtreecommitdiffstats
path: root/libdha/sysdep/pci_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdha/sysdep/pci_linux.c')
-rw-r--r--libdha/sysdep/pci_linux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libdha/sysdep/pci_linux.c b/libdha/sysdep/pci_linux.c
index 6c0d6b42a3..ab13001198 100644
--- a/libdha/sysdep/pci_linux.c
+++ b/libdha/sysdep/pci_linux.c
@@ -32,8 +32,12 @@ static __inline__ int enable_os_io(void)
dhahelper_initialized = -1;
#endif
+#if defined(__powerpc__) && defined(__linux__)
+/* should be fixed? */
+#else
if (iopl(3) != 0)
return(errno);
+#endif
return(0);
}
@@ -44,7 +48,11 @@ static __inline__ int disable_os_io(void)
close(dhahelper_fd);
else
#endif
+#if defined(__powerpc__) && defined(__linux__)
+/* should be fixed? */
+#else
if (iopl(0) != 0)
return(errno);
+#endif
return(0);
}