[PATCH 04/12] int10: Port off xf86ReadBIOS
Jon TURNEY
jon.turney at dronecode.org.uk
Mon Jul 13 10:06:12 PDT 2015
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 :)
-------------- next part --------------
From 98f98f546805e1fee2512ab074dcf265d2c3da4c Mon Sep 17 00:00:00 2001
From: Jon TURNEY <jon.turney at 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.turney at 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
More information about the xorg-devel
mailing list