Change the type of the parameter PhysicalAddress in MmDisableVirtualMapping.
authorHartmut Birr <osexpert@googlemail.com>
Sat, 17 Aug 2002 15:27:54 +0000 (15:27 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Sat, 17 Aug 2002 15:27:54 +0000 (15:27 +0000)
svn path=/trunk/; revision=3346

reactos/ntoskrnl/include/internal/mm.h
reactos/ntoskrnl/mm/anonmem.c
reactos/ntoskrnl/mm/i386/page.c

index fa31f21..bfe8408 100644 (file)
@@ -507,7 +507,7 @@ NTSTATUS
 MmTrimUserMemory(ULONG Target, ULONG Priority, PULONG NrFreedPages);
 
 VOID
-MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, ULONG* PhysicalAddr);
+MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, PHYSICAL_ADDRESS* PhysicalAddr);
 VOID MmEnableVirtualMapping(PEPROCESS Process, PVOID Address);
 VOID
 MmDeletePageFileMapping(PEPROCESS Process, PVOID Address, 
index 439c730..8767baf 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: anonmem.c,v 1.3 2002/08/17 01:42:02 dwelch Exp $
+/* $Id: anonmem.c,v 1.4 2002/08/17 15:27:54 hbirr Exp $
  *
  * PROJECT:     ReactOS kernel
  * FILE:        ntoskrnl/mm/anonmem.c
@@ -153,7 +153,7 @@ MmPageOutVirtualMemory(PMADDRESS_SPACE AddressSpace,
     * Disable the virtual mapping.
     */
    MmDisableVirtualMapping(MemoryArea->Process, Address,
-                          &WasDirty, (PULONG)&PhysicalAddress);
+                          &WasDirty, &PhysicalAddress);
    if (PhysicalAddress.QuadPart == 0)
      {
        KeBugCheck(0);
index 0cd0c79..4ca7da0 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: page.c,v 1.40 2002/08/14 20:58:37 dwelch Exp $
+/* $Id: page.c,v 1.41 2002/08/17 15:27:54 hbirr Exp $
  *
  * PROJECT:     ReactOS kernel
  * FILE:        ntoskrnl/mm/i386/page.c
@@ -345,7 +345,7 @@ MmGetPhysicalAddressForProcess(PEPROCESS Process,
 }
 
 VOID
-MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, ULONG* PhysicalAddr)
+MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, PHYSICAL_ADDRESS* PhysicalAddr)
 /*
  * FUNCTION: Delete a virtual mapping 
  */
@@ -409,7 +409,8 @@ MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOL* WasDirty, ULONG*
      }
    if (PhysicalAddr != NULL)
      {
-       *PhysicalAddr = PAGE_MASK(Pte);
+       PhysicalAddr->u.HighPart = 0;
+       PhysicalAddr->u.LowPart = PAGE_MASK(Pte);
      }
 }