[NTOSKRNL]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 22 May 2010 14:24:06 +0000 (14:24 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 22 May 2010 14:24:06 +0000 (14:24 +0000)
- Use MiGetPdeOffset macro instead of ADDR_TO_PDE_OFFSET.

svn path=/branches/header-work/; revision=47303

ntoskrnl/mm/ARM3/mminit.c

index 25c37dc..63be4f6 100644 (file)
@@ -1202,7 +1202,7 @@ MiAddHalIoMappings(VOID)
 
     /* Check how many PDEs the heap has */
     PointerPde = MiAddressToPde(BaseAddress);
-    PdeCount = PDE_COUNT - ADDR_TO_PDE_OFFSET(BaseAddress);
+    PdeCount = PDE_COUNT - MiGetPdeOffset(BaseAddress);
     for (i = 0; i < PdeCount; i++)
     {
         /* Does the HAL own this mapping? */