[ros-diffs] [tkreuzer] 45905: - Add PMDLX - MmProbeAndLockProcessPages is win2k, not XP - update CM_PARTIAL_RESOURCE_DESCRIPTOR - comment out some ExInterlocked functions for x86

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sat Mar 6 03:21:21 CET 2010


Author: tkreuzer
Date: Sat Mar  6 03:21:20 2010
New Revision: 45905

URL: http://svn.reactos.org/svn/reactos?rev=45905&view=rev
Log:
- Add PMDLX
- MmProbeAndLockProcessPages is win2k, not XP
- update CM_PARTIAL_RESOURCE_DESCRIPTOR
- comment out some ExInterlocked functions for x86

Modified:
    branches/header-work/include/ddk/wdm.h
    branches/header-work/include/ddk/winddk.h

Modified: branches/header-work/include/ddk/wdm.h
URL: http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/wdm.h?rev=45905&r1=45904&r2=45905&view=diff
==============================================================================
--- branches/header-work/include/ddk/wdm.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/wdm.h [iso-8859-1] Sat Mar  6 03:21:20 2010
@@ -1794,6 +1794,7 @@
     ULONG ByteCount;
     ULONG ByteOffset;
 } MDL, *PMDL;
+typedef MDL *PMDLX;
 
 typedef enum _MEMORY_CACHING_TYPE_ORIG {
   MmFrameBufferCached = 2
@@ -1997,8 +1998,9 @@
 VOID
 NTAPI
 MmBuildMdlForNonPagedPool(
-  IN OUT PMDL  MemoryDescriptorList);
-
+  IN OUT PMDLX  MemoryDescriptorList);
+
+//DECLSPEC_DEPRECATED_DDK
 NTKERNELAPI
 PMDL
 NTAPI
@@ -2126,6 +2128,15 @@
 NTKERNELAPI
 VOID
 NTAPI
+MmProbeAndLockProcessPages(
+  IN OUT PMDL  MemoryDescriptorList,
+  IN PEPROCESS  Process,
+  IN KPROCESSOR_MODE  AccessMode,
+  IN LOCK_OPERATION  Operation);
+
+NTKERNELAPI
+VOID
+NTAPI
 MmUnmapLockedPages(
   IN PVOID  BaseAddress,
   IN PMDL  MemoryDescriptorList);
@@ -2169,15 +2180,6 @@
   IN ULONG  PoolTag,
   IN PMDL  MemoryDescriptorList,
   IN MEMORY_CACHING_TYPE  CacheType);
-
-NTKERNELAPI
-VOID
-NTAPI
-MmProbeAndLockProcessPages(
-  IN OUT PMDL  MemoryDescriptorList,
-  IN PEPROCESS  Process,
-  IN KPROCESSOR_MODE  AccessMode,
-  IN LOCK_OPERATION  Operation);
 
 NTKERNELAPI
 NTSTATUS
@@ -2793,7 +2795,12 @@
       ULONG Length;
     } Port;
     struct {
+#if defined(NT_PROCESSOR_GROUPS)
+      USHORT Level;
+      USHORT Group;
+#else
       ULONG Level;
+#endif
       ULONG Vector;
       KAFFINITY Affinity;
     } Interrupt;
@@ -2801,17 +2808,26 @@
     struct {
       __GNU_EXTENSION union {
         struct {
+#if defined(NT_PROCESSOR_GROUPS)
+          USHORT Group;
+#else
           USHORT Reserved;
+#endif
           USHORT MessageCount;
           ULONG Vector;
           KAFFINITY Affinity;
         } Raw;
         struct {
+#if defined(NT_PROCESSOR_GROUPS)
+          USHORT Level;
+          USHORT Group;
+#else
           ULONG Level;
+#endif
           ULONG Vector;
           KAFFINITY Affinity;
         } Translated;
-      };
+      } DUMMYUNIONNAME;
     } MessageInterrupt;
 #endif
     struct {

Modified: branches/header-work/include/ddk/winddk.h
URL: http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/winddk.h?rev=45905&r1=45904&r2=45905&view=diff
==============================================================================
--- branches/header-work/include/ddk/winddk.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/winddk.h [iso-8859-1] Sat Mar  6 03:21:20 2010
@@ -3650,6 +3650,7 @@
   IN OUT PLARGE_INTEGER  Remainder);
 #endif
 
+#ifndef _X86_
 NTKERNELAPI
 INTERLOCKED_RESULT
 NTAPI
@@ -3671,6 +3672,7 @@
 ExInterlockedIncrementLong(
   IN PLONG  Addend,
   IN PKSPIN_LOCK  Lock);
+#endif
 
 NTHALAPI
 VOID




More information about the Ros-diffs mailing list