diff options
author | Vinay <vinay@vinayb-dev4.(none)> | 2008-01-19 08:39:24 -0800 |
---|---|---|
committer | Vinay <vinay@vinayb-dev4.(none)> | 2008-01-19 08:39:24 -0800 |
commit | a33ab73ffa5d3797d16c3a265ddefc56a5a93b6b (patch) | |
tree | 55dae1066c503c393c66409151216e7616e81ccd /src | |
parent | 62d898669baccfd4c312f3ed8f228d0c3217d3c3 (diff) |
Trivial libpciaccess related fix
Fix VMWAREUnmapMem to correctly unmap memory for the libpciaccess case.
Diffstat (limited to 'src')
-rw-r--r-- | src/vmware.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vmware.c b/src/vmware.c index c737f64..d71e48e 100644 --- a/src/vmware.c +++ b/src/vmware.c @@ -1046,7 +1046,11 @@ VMWAREUnmapMem(ScrnInfoPtr pScrn) VmwareLog(("Unmapped: %p/%u\n", pVMWARE->FbBase, pVMWARE->videoRam)); +#if XSERVER_LIBPCIACCESS + pci_device_unmap_range(pVMWARE->PciInfo, pVMWARE->FbBase, pVMWARE->videoRam); +#else xf86UnMapVidMem(pScrn->scrnIndex, pVMWARE->FbBase, pVMWARE->videoRam); +#endif pVMWARE->FbBase = NULL; return TRUE; } |