From: Owen Smith Date: Fri, 30 Oct 2015 17:39:23 +0000 (+0000) Subject: Define NT_PROCESSOR_GROUPS for VS2012 project X-Git-Tag: 8.2.0-rc1~48 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9498b68;p=pvdrivers%2Fwin%2Fxeniface.git Define NT_PROCESSOR_GROUPS for VS2012 project Previous patch missed the obvious compatability macros provided and used by xenbus. Also fixes a few badly formed ASSERTions Signed-off-by: Owen Smith Signed-off-by: Paul Durrant --- diff --git a/src/xeniface/driver.c b/src/xeniface/driver.c index f4e8240..a843d00 100644 --- a/src/xeniface/driver.c +++ b/src/xeniface/driver.c @@ -30,6 +30,7 @@ */ #include +#include #include #include "fdo.h" @@ -149,6 +150,7 @@ DriverEntry( ASSERT3P(DriverObject, ==, NULL); ExInitializeDriverRuntime(DrvRtPoolNxOptIn); + WdmlibProcgrpInitialize(); Trace("====>\n"); diff --git a/src/xeniface/fdo.c b/src/xeniface/fdo.c index 71ffbe2..fdb3edf 100644 --- a/src/xeniface/fdo.c +++ b/src/xeniface/fdo.c @@ -31,6 +31,7 @@ #include +#include #include #include #include diff --git a/src/xeniface/ioctl_evtchn.c b/src/xeniface/ioctl_evtchn.c index 93f1931..3b8ecb5 100644 --- a/src/xeniface/ioctl_evtchn.c +++ b/src/xeniface/ioctl_evtchn.c @@ -29,6 +29,8 @@ * SUCH DAMAGE. */ +#include +#include #include "driver.h" #include "ioctls.h" #include "xeniface_ioctls.h" @@ -51,7 +53,7 @@ EvtchnNotificationDpc( UNREFERENCED_PARAMETER(_Context); UNREFERENCED_PARAMETER(Argument2); - ASSERT(Context); + ASSERT(Context != NULL); #if DBG XenIfaceDebugPrint(INFO, "Channel %p, LocalPort %d, Cpu %lu\n", @@ -80,7 +82,7 @@ EvtchnInterruptHandler( ULONG ProcIndex; UNREFERENCED_PARAMETER(Interrupt); - ASSERT(Context); + ASSERT(Context != NULL); KeGetCurrentProcessorNumberEx(&ProcNumber); ProcIndex = KeGetProcessorIndexFromNumber(&ProcNumber); diff --git a/src/xeniface/ioctls.c b/src/xeniface/ioctls.c index b306a45..e1e3b6d 100644 --- a/src/xeniface/ioctls.c +++ b/src/xeniface/ioctls.c @@ -30,6 +30,8 @@ * SUCH DAMAGE. */ +#include +#include #include "driver.h" #include "ioctls.h" #include "xeniface_ioctls.h" diff --git a/vs2012/xeniface/xeniface.vcxproj b/vs2012/xeniface/xeniface.vcxproj index fadc1d1..c57e2a2 100644 --- a/vs2012/xeniface/xeniface.vcxproj +++ b/vs2012/xeniface/xeniface.vcxproj @@ -32,7 +32,7 @@ - __MODULE__="XENIFACE";POOL_NX_OPTIN=1;%(PreprocessorDefinitions) + __MODULE__="XENIFACE";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) EnableAllWarnings 4711;4548;4820;4668;4255;6001;6054;%(DisableSpecificWarnings) true @@ -40,7 +40,7 @@ false - $(DDK_LIB_PATH)\ntstrsafe.lib;%(AdditionalDependencies) + $(DDK_LIB_PATH)\ntstrsafe.lib;$(DDK_LIB_PATH)\procgrp.lib;%(AdditionalDependencies) false