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/…
==============================================================================
--- 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))