Author: jgardou
Date: Wed Jul 30 13:11:55 2014
New Revision: 63784
URL:
http://svn.reactos.org/svn/reactos?rev=63784&view=rev
Log:
[NDK]
- Make the MMWSLE structure multi-arch aware
Modified:
trunk/reactos/include/ndk/amd64/mmtypes.h
trunk/reactos/include/ndk/arm/mmtypes.h
trunk/reactos/include/ndk/i386/mmtypes.h
trunk/reactos/include/ndk/mmtypes.h
Modified: trunk/reactos/include/ndk/amd64/mmtypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/amd64/mmtypes.…
==============================================================================
--- trunk/reactos/include/ndk/amd64/mmtypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/amd64/mmtypes.h [iso-8859-1] Wed Jul 30 13:11:55 2014
@@ -35,6 +35,7 @@
#define PAGE_SHIFT 12L
#define MM_ALLOCATION_GRANULARITY 0x10000
#define MM_ALLOCATION_GRANULARITY_SHIFT 16L
+#define MM_PAGE_FRAME_NUMBER_SIZE 52
//
// Address of the shared user page
Modified: trunk/reactos/include/ndk/arm/mmtypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/arm/mmtypes.h?…
==============================================================================
--- trunk/reactos/include/ndk/arm/mmtypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/arm/mmtypes.h [iso-8859-1] Wed Jul 30 13:11:55 2014
@@ -36,6 +36,7 @@
#define PAGE_SHIFT 12L
#define MM_ALLOCATION_GRANULARITY 0x10000
#define MM_ALLOCATION_GRANULARITY_SHIFT 16L
+#define MM_PAGE_FRAME_NUMBER_SIZE 20
//
// Sanity checks for Paging Macros
Modified: trunk/reactos/include/ndk/i386/mmtypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/i386/mmtypes.h…
==============================================================================
--- trunk/reactos/include/ndk/i386/mmtypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/i386/mmtypes.h [iso-8859-1] Wed Jul 30 13:11:55 2014
@@ -34,6 +34,7 @@
#define PAGE_SHIFT 12L
#define MM_ALLOCATION_GRANULARITY 0x10000
#define MM_ALLOCATION_GRANULARITY_SHIFT 16L
+#define MM_PAGE_FRAME_NUMBER_SIZE 20
//
// Address of the shared user page
Modified: trunk/reactos/include/ndk/mmtypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/mmtypes.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/mmtypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/mmtypes.h [iso-8859-1] Wed Jul 30 13:11:55 2014
@@ -842,14 +842,14 @@
//
typedef struct _MMWSLENTRY
{
- ULONG Valid:1;
- ULONG LockedInWs:1;
- ULONG LockedInMemory:1;
- ULONG Protection:5;
- ULONG Hashed:1;
- ULONG Direct:1;
- ULONG Age:2;
- ULONG VirtualPageNumber:20;
+ ULONG_PTR Valid:1;
+ ULONG_PTR LockedInWs:1;
+ ULONG_PTR LockedInMemory:1;
+ ULONG_PTR Protection:5;
+ ULONG_PTR Hashed:1;
+ ULONG_PTR Direct:1;
+ ULONG_PTR Age:2;
+ ULONG_PTR VirtualPageNumber: MM_PAGE_FRAME_NUMBER_SIZE;
} MMWSLENTRY, *PMMWSLENTRY;
typedef struct _MMWSLE
@@ -857,7 +857,7 @@
union
{
PVOID VirtualAddress;
- ULONG Long;
+ ULONG_PTR Long;
MMWSLENTRY e1;
} u1;
} MMWSLE, *PMMWSLE;