summaryrefslogtreecommitdiff
path: root/debian/patches/40_iopl_mem.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/40_iopl_mem.patch')
-rw-r--r--debian/patches/40_iopl_mem.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/40_iopl_mem.patch b/debian/patches/40_iopl_mem.patch
new file mode 100644
index 0000000..5719a57
--- /dev/null
+++ b/debian/patches/40_iopl_mem.patch
@@ -0,0 +1,18 @@
+The mem device provides direct memory access (needed e.g. for Xorg), but some
+packages (Xorg, notably) are still using the iopl device.
+
+diff --git a/i386/i386at/conf.c b/i386/i386at/conf.c
+index d51b5ee..88e753c 100644
+--- a/i386/i386at/conf.c
++++ b/i386/i386at/conf.c
+@@ -135,6 +135,10 @@ struct dev_ops dev_name_list[] =
+ nodev, nodev, nodev, memmmap,
+ nodev, nulldev, nulldev, 0,
+ nodev },
++ { "iopl", nulldev, nulldev, nodev,
++ nodev, nodev, nodev, memmmap,
++ nodev, nulldev, nulldev, 0,
++ nodev },
+ #endif /* MACH_HYP */
+
+ #ifdef MACH_KMSG