win-pvdrivers

changeset 352:961762808bab

add fixes for James' latest code
author Andy Grover <andy.grover@oracle.com>
date Tue Jul 01 15:40:45 2008 -0700 (2008-07-01)
parents b827e78992a3
children d2ebc66da34c 47f67a52a66f
files doc/BUILDING_mingw.txt xenpci/mingw_extras.h xenpci/xenpci_fdo.c xenpci/xenpci_pdo.c
line diff
     1.1 --- a/doc/BUILDING_mingw.txt	Tue Jul 01 15:30:44 2008 -0700
     1.2 +++ b/doc/BUILDING_mingw.txt	Tue Jul 01 15:40:45 2008 -0700
     1.3 @@ -10,7 +10,7 @@ 2. mingw-runtime headers need to be modi
     1.4     package from mingw.sf.net.
     1.5  
     1.6  3. Untar, then edit lib/ddk/ntoskrnl.def. Remove ";" from line ~545, which says
     1.7 -   "KeNumberProcessors DATA".
     1.8 +   "KeNumberProcessors DATA". Add a line "KeFlushQueuedDpcs@0"
     1.9  
    1.10  4. Type: "./configure i586-mingw32-msvc;make"
    1.11  
     2.1 --- a/xenpci/mingw_extras.h	Tue Jul 01 15:30:44 2008 -0700
     2.2 +++ b/xenpci/mingw_extras.h	Tue Jul 01 15:40:45 2008 -0700
     2.3 @@ -22,6 +22,11 @@ DDKAPI
     2.4  KeLowerIrql(IN KIRQL irql);
     2.5  
     2.6  extern NTOSAPI CCHAR KeNumberProcessors;
     2.7 +
     2.8 +NTOSAPI
     2.9 +VOID
    2.10 +DDKAPI
    2.11 +KeFlushQueuedDpcs(VOID);
    2.12  
    2.13  #define RtlStringCbCopyA(dst, dst_len, src) strncpy(dst, src, dst_len)
    2.14  #define RtlStringCbPrintfA(args...) snprintf(args)
     3.1 --- a/xenpci/xenpci_fdo.c	Tue Jul 01 15:30:44 2008 -0700
     3.2 +++ b/xenpci/xenpci_fdo.c	Tue Jul 01 15:40:45 2008 -0700
     3.3 @@ -303,7 +303,7 @@ XenBus_ShutdownIoCancel(PDEVICE_OBJECT d
     3.4    KdPrint((__DRIVER_NAME " <-- " __FUNCTION__"\n"));
     3.5  }
     3.6  
     3.7 -static VOID
     3.8 +static DDKAPI VOID
     3.9  XenPci_CompleteResume(PDEVICE_OBJECT device_object, PVOID context)
    3.10  {
    3.11    PXENPCI_DEVICE_DATA xpdd;
     4.1 --- a/xenpci/xenpci_pdo.c	Tue Jul 01 15:30:44 2008 -0700
     4.2 +++ b/xenpci/xenpci_pdo.c	Tue Jul 01 15:40:45 2008 -0700
     4.3 @@ -554,7 +554,7 @@ XenPci_XenConfigDeviceSpecifyBuffers(PVO
     4.4  
     4.5    // second pass, possibly after state == Connected
     4.6    in_ptr = src;
     4.7 -  while((type = GET_XEN_INIT_REQ(&in_ptr, &setting, &value)) != XEN_INIT_TYPE_END)
     4.8 +  while((type = GET_XEN_INIT_REQ(&in_ptr, (PVOID)&setting, (PVOID)&value)) != XEN_INIT_TYPE_END)
     4.9    {
    4.10      switch(type)
    4.11      {