summaryrefslogtreecommitdiff
path: root/debian/patches/40_iopl_mem.batch
blob: 5719a57d55f88084f924f63042a20b18050ec96b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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