[NTOS]: Add MiGetPteOffset for ARM. All of the kernel compiles, but does not link...
authorSir Richard <sir_richard@svn.reactos.org>
Wed, 24 Nov 2010 16:09:19 +0000 (16:09 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Wed, 24 Nov 2010 16:09:19 +0000 (16:09 +0000)
svn path=/trunk/; revision=49778

reactos/ntoskrnl/include/internal/arm/mm.h

index f70f5c4..b73179c 100644 (file)
@@ -150,8 +150,9 @@ PULONG MmGetPageDirectory(VOID);
 #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))