On 29/07/2014 20:00, Adam Jackson wrote:
If the linux vm86 backend changes look somewhat horrifying to you,
that's because you have taste.

+static Bool
+readLegacy(struct pci_device *dev, unsigned char *buf, int base, int len)
+{
+    void *map;
+
+    if (!pci_device_map_legacy(dev, base, len, 0, &map))
+        return FALSE;
+
+    memcpy(buf, map, len);
+    pci_device_unmap_legacy(dev, man, len);

I'm guessing 'map' is meant here, if anyone was actually using this :)


From 98f98f546805e1fee2512ab074dcf265d2c3da4c Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.tur...@dronecode.org.uk>
Date: Fri, 1 May 2015 11:24:02 +0100
Subject: [PATCH] Fix build on linux with --with-int10=vm86

Signed-off-by: Jon TURNEY <jon.tur...@dronecode.org.uk>
---
 hw/xfree86/os-support/linux/int10/linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xfree86/os-support/linux/int10/linux.c 
b/hw/xfree86/os-support/linux/int10/linux.c
index 5acb6e4..0234a19 100644
--- a/hw/xfree86/os-support/linux/int10/linux.c
+++ b/hw/xfree86/os-support/linux/int10/linux.c
@@ -79,7 +79,7 @@ readLegacy(struct pci_device *dev, unsigned char *buf, int 
base, int len)
         return FALSE;
 
     memcpy(buf, map, len);
-    pci_device_unmap_legacy(dev, man, len);
+    pci_device_unmap_legacy(dev, map, len);
 
     return TRUE;
 }
-- 
2.0.5

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to