win-pvdrivers

view xenpci/sources @ 685:c13ccf5a629b

Fixed a bug in the dma routines which was causing memory corruption. In some cases when Windows gave an MDL that was longer than the buffer to be dma'd, the end of the buffer would be overwritten. The only time I am aware of this occuring is on one particular map in Call Of Duty 4.

Split out the dma routines from xenpci_pdo.c into xenpci_dma.c
author James Harper <james.harper@bendigoit.com.au>
date Wed Oct 14 14:46:39 2009 +1100 (2009-10-14)
parents 1bae3638ab55
children 377647b4097a
line source
1 !INCLUDE ..\common.inc
2 TARGETNAME=xenpci
3 TARGETTYPE=DRIVER
4 KMDF_VERSION_MAJOR=1
5 NTTARGETFILES=$(NTTARGETFILES) $(OBJ_PATH)\$(O)\$(TARGETNAME).inf
6 TARGETLIBS=$(TARGETLIBS) $(DDK_LIB_PATH)\wdmsec.lib $(DDK_LIB_PATH)\Rtlver.lib $(DDK_LIB_PATH)\..\..\wlh\*\aux_klib.lib
7 AMD64_SOURCES=hypercall.asm
8 I386_SOURCES=tpr_emulate.asm
10 SOURCES=xenpci.rc xenpci.c xenpci_fdo.c xenpci_pdo.c xenpci_dma.c evtchn.c gnttbl.c xenbus.c memory.c xenpci_device_interface.c xenbus_device_interface.c xenpci_highsync.c xenpci_patch_kernel.c