]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Make sure we don't specify an interrupt processor group...
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 11 Nov 2016 15:23:04 +0000 (15:23 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 11 Nov 2016 15:23:04 +0000 (15:23 +0000)
...on OS prior to Windows 7.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/fdo.c
vs2012/xenbus/xenbus.vcxproj
vs2013/xenbus/xenbus.vcxproj

index 2e1ef6b95cb8be31b721057c36b7d16cfd72f77b..ef31de1d83f76cb5e29efcb854acaed9d07fd0b3 100644 (file)
@@ -1897,7 +1897,9 @@ FdoFilterResourceRequirements(
         status = KeGetProcessorNumberFromIndex(Index, &ProcNumber);
         ASSERT(NT_SUCCESS(status));
 
-        Interrupt.u.Interrupt.Group = ProcNumber.Group;
+        if (RtlIsNtDdiVersionAvailable(NTDDI_WIN7))
+            Interrupt.u.Interrupt.Group = ProcNumber.Group;
+
         Interrupt.u.Interrupt.TargetedProcessors = (KAFFINITY)1 << ProcNumber.Number;
         List->Descriptors[List->Count++] = Interrupt;
     }
index f5692eba1d3a8a9f3850812437867d52459f7069..2cffb9f9bbeaa81d628cf0bf1ef01efc328e067f 100644 (file)
@@ -34,7 +34,7 @@
     </ClCompile>
     <Link>
       <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
-      <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <EnableCOMDATFolding>false</EnableCOMDATFolding>
     </Link>
     <Inf>
index d53ce0ed7b076a834b295058e8059b19df727273..396245f8ae377ebde967825dc1a4851c06f186af 100644 (file)
@@ -37,7 +37,7 @@
     </ResourceCompile>
     <Link>
       <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
-      <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>$(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <EnableCOMDATFolding>false</EnableCOMDATFolding>
     </Link>
     <Inf>