[ros-diffs] [sir_richard] 49778: [NTOS]: Add MiGetPteOffset for ARM. All of the kernel compiles, but does not link yet.

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Wed Nov 24 16:09:20 UTC 2010


Author: sir_richard
Date: Wed Nov 24 16:09:19 2010
New Revision: 49778

URL: http://svn.reactos.org/svn/reactos?rev=49778&view=rev
Log:
[NTOS]: Add MiGetPteOffset for ARM. All of the kernel compiles, but does not link yet.

Modified:
    trunk/reactos/ntoskrnl/include/internal/arm/mm.h

Modified: trunk/reactos/ntoskrnl/include/internal/arm/mm.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/arm/mm.h?rev=49778&r1=49777&r2=49778&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/arm/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/arm/mm.h [iso-8859-1] Wed Nov 24 16:09:19 2010
@@ -150,8 +150,9 @@
 #define MiAddressToPte(x)  MiGetPteAddress(x)
 
 /* Retrives the PDE offset for the given VA */
-#define MiGetPdeOffset(x) (((ULONG)(x)) >> 20)
-//#define MiGetPteOffset(x) (((ULONG)(x)) >> 12)
+#define MiGetPdeOffset(x)       (((ULONG)(x)) >> 20)
+#define MiGetPteOffset(x)       ((((ULONG)(x)) << 12) >> 24)
+#define MiAddressToPteOffset(x) MiGetPteOffset(x)
     
 /* Convert a PTE into a corresponding address */
 #define MiPteToAddress(x) ((PVOID)((ULONG)(x) << 10))




More information about the Ros-diffs mailing list