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,
* 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
* Disable the virtual mapping.
*/
MmDisableVirtualMapping(MemoryArea->Process, Address,
- &WasDirty, (PULONG)&PhysicalAddress);
+ &WasDirty, &PhysicalAddress);
if (PhysicalAddress.QuadPart == 0)
{
KeBugCheck(0);
* 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
}
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
*/
}
if (PhysicalAddr != NULL)
{
- *PhysicalAddr = PAGE_MASK(Pte);
+ PhysicalAddr->u.HighPart = 0;
+ PhysicalAddr->u.LowPart = PAGE_MASK(Pte);
}
}