ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
July 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
25 participants
761 discussions
Start a n
N
ew thread
[cfinck] 34948: Remove a change from our diff file for comctl32, which is in Wine HEAD as well. See issue #2843 for more details.
by cfinck@svn.reactos.org
Author: cfinck Date: Wed Jul 30 05:11:09 2008 New Revision: 34948 URL:
http://svn.reactos.org/svn/reactos?rev=34948&view=rev
Log: Remove a change from our diff file for comctl32, which is in Wine HEAD as well. See issue #2843 for more details. Modified: trunk/reactos/dll/win32/comctl32/comctl32_ros.diff Modified: trunk/reactos/dll/win32/comctl32/comctl32_ros.diff URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/comctl3…
============================================================================== --- trunk/reactos/dll/win32/comctl32/comctl32_ros.diff [iso-8859-1] (original) +++ trunk/reactos/dll/win32/comctl32/comctl32_ros.diff [iso-8859-1] Wed Jul 30 05:11:09 2008 @@ -134,12 +134,3 @@ if (infoPtr->cdmode & CDRF_NOTIFYPOSTPAINT) infoPtr->cdmode = TREEVIEW_SendCustomDrawNotify(infoPtr, CDDS_POSTPAINT, hdc, rect); -@@ -3209,7 +3207,7 @@ - { - scrollRect.top = nextItem->rect.top; - -- ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, NULL, -+ ScrollWindowEx (infoPtr->hwnd, 0, scrollDist, &scrollRect, &scrollRect, - NULL, NULL, SW_ERASE | SW_INVALIDATE); - TREEVIEW_Invalidate(infoPtr, wineItem); - } else {
16 years, 4 months
1
0
0
0
[fireball] 34947: - Add IRP tests based on a Alexander Morozov's patch to Wine ("[try 3] Add tests for IoInitializeIrp and IoAllocateIrp").
by fireball@svn.reactos.org
Author: fireball Date: Wed Jul 30 04:23:45 2008 New Revision: 34947 URL:
http://svn.reactos.org/svn/reactos?rev=34947&view=rev
Log: - Add IRP tests based on a Alexander Morozov's patch to Wine ("[try 3] Add tests for IoInitializeIrp and IoAllocateIrp"). Modified: trunk/rostests/drivers/kmtest/kmtest.c trunk/rostests/drivers/kmtest/ntos_io.c Modified: trunk/rostests/drivers/kmtest/kmtest.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/drivers/kmtest/kmtest.c?r…
============================================================================== --- trunk/rostests/drivers/kmtest/kmtest.c [iso-8859-1] (original) +++ trunk/rostests/drivers/kmtest/kmtest.c [iso-8859-1] Wed Jul 30 04:23:45 2008 @@ -103,8 +103,7 @@ /* * Test Declarations */ -VOID NtoskrnlIoMdlTest(); -VOID NtoskrnlIoDeviceInterface(); +VOID NtoskrnlIoTests(); VOID NtoskrnlObTest(); VOID NtoskrnlExecutiveTests(); VOID NtoskrnlPoolsTest(); @@ -120,10 +119,9 @@ DbgPrint("\n===============================================\nKernel Mode Regression Test driver starting...\n"); //NtoskrnlExecutiveTests(); //NtoskrnlIoDeviceInterface(); - //NtoskrnlIoMdlTest(); + NtoskrnlIoTests(); //NtoskrnlObTest(); - //NtoskrnlObTest(); - NtoskrnlPoolsTest(); + //NtoskrnlPoolsTest(); return STATUS_SUCCESS; } Modified: trunk/rostests/drivers/kmtest/ntos_io.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/drivers/kmtest/ntos_io.c?…
============================================================================== --- trunk/rostests/drivers/kmtest/ntos_io.c [iso-8859-1] (original) +++ trunk/rostests/drivers/kmtest/ntos_io.c [iso-8859-1] Wed Jul 30 04:23:45 2008 @@ -3,6 +3,7 @@ * ReactOS Kernel Mode Regression Testing framework * * Copyright 2006 Aleksey Bragin <aleksey(a)reactos.org> + * Copyright 2008 Etersoft (Alexander Morozov) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -27,6 +28,9 @@ #define NDEBUG #include "debug.h" + +VOID NtoskrnlIoDeviceInterface(); + /* PUBLIC FUNCTIONS ***********************************************************/ @@ -79,3 +83,91 @@ FinishTest("NTOSKRNL Io Mdl"); } + +VOID NtoskrnlIoIrpTest() +{ + USHORT size; + IRP *iorp; + + // 1st test + size = sizeof(IRP) + 5 * sizeof(IO_STACK_LOCATION); + iorp = ExAllocatePool(NonPagedPool, size); + + if (NULL != iorp) + { + IoInitializeIrp(iorp, size, 5); + + ok(6 == iorp->Type, "Irp type should be 6, but got %d\n", iorp->Type); + ok(iorp->Size == size, "Irp size should be %d, but got %d\n", + iorp->Size, size); + ok(5 == iorp->StackCount, "Irp StackCount should be 5, but got %d\n", + iorp->StackCount); + ok(6 == iorp->CurrentLocation, "Irp CurrentLocation should be 6, but got %d\n", + iorp->CurrentLocation); + ok(IsListEmpty(&iorp->ThreadListEntry), "IRP thread list is not empty\n"); + ok ((PIO_STACK_LOCATION)(iorp + 1) + 5 == + iorp->Tail.Overlay.CurrentStackLocation, + "CurrentStackLocation mismatch\n"); + + ExFreePool(iorp); + } + + // 2nd test + size = sizeof(IRP) + 2 * sizeof(IO_STACK_LOCATION); + iorp = IoAllocateIrp(2, FALSE); + + if (NULL != iorp) + { + ok(6 == iorp->Type, "Irp type should be 6, but got %d\n", iorp->Type); + ok(iorp->Size >= size, + "Irp size should be more or equal to %d, but got %d\n", + iorp->Size, size); + ok(2 == iorp->StackCount, "Irp StackCount should be 2, but got %d\n", + iorp->StackCount); + ok(3 == iorp->CurrentLocation, "Irp CurrentLocation should be 3, but got %d\n", + iorp->CurrentLocation); + ok(IsListEmpty(&iorp->ThreadListEntry), "IRP thread list is not empty\n"); + ok ((PIO_STACK_LOCATION)(iorp + 1) + 2 == + iorp->Tail.Overlay.CurrentStackLocation, + "CurrentStackLocation mismatch\n"); + ok((IRP_ALLOCATED_FIXED_SIZE & iorp->AllocationFlags), + "IRP Allocation flags lack fixed size attribute\n"); + ok(!(IRP_LOOKASIDE_ALLOCATION & iorp->AllocationFlags), + "IRP Allocation flags should not have lookaside allocation\n"); + + IoFreeIrp(iorp); + } + + // 3rd test + size = sizeof(IRP) + 2 * sizeof(IO_STACK_LOCATION); + iorp = IoAllocateIrp(2, TRUE); + + if (NULL != iorp) + { + ok(6 == iorp->Type, "Irp type should be 6, but got %d\n", iorp->Type); + ok(iorp->Size >= size, + "Irp size should be more or equal to %d, but got %d\n", + iorp->Size, size); + ok(2 == iorp->StackCount, "Irp StackCount should be 2, but got %d\n", + iorp->StackCount); + ok(3 == iorp->CurrentLocation, "Irp CurrentLocation should be 3, but got %d\n", + iorp->CurrentLocation); + ok(IsListEmpty(&iorp->ThreadListEntry), "IRP thread list is not empty\n"); + ok ((PIO_STACK_LOCATION)(iorp + 1) + 2 == + iorp->Tail.Overlay.CurrentStackLocation, + "CurrentStackLocation mismatch\n"); + ok((IRP_ALLOCATED_FIXED_SIZE & iorp->AllocationFlags), + "IRP Allocation flags lack fixed size attribute\n"); + ok((IRP_LOOKASIDE_ALLOCATION & iorp->AllocationFlags), + "IRP Allocation flags lack lookaside allocation\n"); + + IoFreeIrp(iorp); + } +} + +VOID NtoskrnlIoTests() +{ + //NtoskrnlIoMdlTest(); + //NtoskrnlIoDeviceInterface(); + NtoskrnlIoIrpTest(); +}
16 years, 4 months
1
0
0
0
[hpoussin] 34946: Revert r34344, the mess with GetEnvironmentStrings/GetEnvironmentStringsA is expected.
by hpoussin@svn.reactos.org
Author: hpoussin Date: Wed Jul 30 03:02:45 2008 New Revision: 34946 URL:
http://svn.reactos.org/svn/reactos?rev=34946&view=rev
Log: Revert r34344, the mess with GetEnvironmentStrings/GetEnvironmentStringsA is expected. Added: trunk/reactos/include/psdk/winbase.h - copied unchanged from r34943, trunk/reactos/include/psdk/winbase.h
16 years, 4 months
1
0
0
0
[hpoussin] 34945: unix define doesn't mean we're on a x86 compatible machine
by hpoussin@svn.reactos.org
Author: hpoussin Date: Wed Jul 30 02:29:55 2008 New Revision: 34945 URL:
http://svn.reactos.org/svn/reactos?rev=34945&view=rev
Log: unix define doesn't mean we're on a x86 compatible machine Modified: trunk/reactos/include/psdk/winnt.h Modified: trunk/reactos/include/psdk/winnt.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=3…
============================================================================== --- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Wed Jul 30 02:29:55 2008 @@ -2011,7 +2011,7 @@ } ACL_SIZE_INFORMATION; /* FIXME: add more machines */ -#if defined(_X86_) || defined(unix) && !defined(__PowerPC__) +#if defined(_X86_) && !defined(__PowerPC__) #define SIZE_OF_80387_REGISTERS 80 #define CONTEXT_i386 0x10000 #define CONTEXT_i486 0x10000
16 years, 4 months
1
0
0
0
[hpoussin] 34944: Fix GetEnvironmentStrings/GetEnvironmentStringsA mess
by hpoussin@svn.reactos.org
Author: hpoussin Date: Wed Jul 30 02:27:33 2008 New Revision: 34944 URL:
http://svn.reactos.org/svn/reactos?rev=34944&view=rev
Log: Fix GetEnvironmentStrings/GetEnvironmentStringsA mess Modified: trunk/reactos/include/psdk/winbase.h Modified: trunk/reactos/include/psdk/winbase.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winbase.h?rev…
============================================================================== --- trunk/reactos/include/psdk/winbase.h [iso-8859-1] (original) +++ trunk/reactos/include/psdk/winbase.h [iso-8859-1] Wed Jul 30 02:27:33 2008 @@ -1465,7 +1465,7 @@ #endif UINT WINAPI GetDriveTypeA(LPCSTR); UINT WINAPI GetDriveTypeW(LPCWSTR); -LPSTR WINAPI GetEnvironmentStrings(void); +LPSTR WINAPI GetEnvironmentStringsA(void); LPWSTR WINAPI GetEnvironmentStringsW(void); DWORD WINAPI GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD); DWORD WINAPI GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD); @@ -2401,7 +2401,7 @@ #define GetDllDirectory GetDllDirectoryA #endif #define GetDriveType GetDriveTypeA -#define GetEnvironmentStringsA GetEnvironmentStrings +#define GetEnvironmentStrings GetEnvironmentStringsA #define GetEnvironmentVariable GetEnvironmentVariableA #define GetFileAttributes GetFileAttributesA #define GetFileAttributesEx GetFileAttributesExA
16 years, 4 months
1
0
0
0
[arty] 34943: Patch by Cameron Gutman (aicommander (at) gmail (dot) com) - Remove a hack related to cancellation - Make sure not to pass on a bad IRP on failure (in tdi) - Remember connect irp * Note: commit notes are arty's in this case
by arty@svn.reactos.org
Author: arty Date: Wed Jul 30 01:05:20 2008 New Revision: 34943 URL:
http://svn.reactos.org/svn/reactos?rev=34943&view=rev
Log: Patch by Cameron Gutman (aicommander (at) gmail (dot) com) - Remove a hack related to cancellation - Make sure not to pass on a bad IRP on failure (in tdi) - Remember connect irp * Note: commit notes are arty's in this case Modified: trunk/reactos/drivers/network/afd/afd/main.c trunk/reactos/drivers/network/afd/afd/tdi.c Modified: trunk/reactos/drivers/network/afd/afd/main.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/ma…
============================================================================== --- trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/afd/afd/main.c [iso-8859-1] Wed Jul 30 01:05:20 2008 @@ -165,16 +165,19 @@ InFlightRequest[0] = &FCB->ListenIrp; InFlightRequest[1] = &FCB->ReceiveIrp; InFlightRequest[2] = &FCB->SendIrp; + InFlightRequest[3] = &FCB->ConnectIrp; /* Return early here because we might be called in the mean time. */ if( FCB->Critical || FCB->ListenIrp.InFlightRequest || FCB->ReceiveIrp.InFlightRequest || - FCB->SendIrp.InFlightRequest ) { - AFD_DbgPrint(MIN_TRACE,("Leaving socket alive (%x %x %x)\n", + FCB->SendIrp.InFlightRequest || + FCB->ConnectIrp.InFlightRequest ) { + AFD_DbgPrint(MIN_TRACE,("Leaving socket alive (%x %x %x %x)\n", FCB->ListenIrp.InFlightRequest, FCB->ReceiveIrp.InFlightRequest, - FCB->SendIrp.InFlightRequest)); + FCB->SendIrp.InFlightRequest, + FCB->ConnectIrp.InFlightRequest)); ReturnEarly = TRUE; } @@ -183,11 +186,10 @@ /* Cancel our pending requests */ for( i = 0; i < IN_FLIGHT_REQUESTS; i++ ) { - NTSTATUS Status = STATUS_NO_SUCH_FILE; if( InFlightRequest[i]->InFlightRequest ) { AFD_DbgPrint(MID_TRACE,("Cancelling in flight irp %d (%x)\n", i, InFlightRequest[i]->InFlightRequest)); - InFlightRequest[i]->InFlightRequest->IoStatus.Status = Status; + InFlightRequest[i]->InFlightRequest->IoStatus.Status = STATUS_CANCELLED; InFlightRequest[i]->InFlightRequest->IoStatus.Information = 0; IoCancelIrp( InFlightRequest[i]->InFlightRequest ); } Modified: trunk/reactos/drivers/network/afd/afd/tdi.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/td…
============================================================================== --- trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] (original) +++ trunk/reactos/drivers/network/afd/afd/tdi.c [iso-8859-1] Wed Jul 30 01:05:20 2008 @@ -294,6 +294,11 @@ assert(ConnectionObject); DeviceObject = IoGetRelatedDeviceObject(ConnectionObject); + if (!DeviceObject) { + AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + *Irp = NULL; + return STATUS_INVALID_PARAMETER; + } *Irp = TdiBuildInternalDeviceControlIrp(TDI_CONNECT, /* Sub function */ DeviceObject, /* Device object */ @@ -343,6 +348,10 @@ assert(ConnectionObject); DeviceObject = IoGetRelatedDeviceObject(ConnectionObject); + if (!DeviceObject) { + AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + return STATUS_INVALID_PARAMETER; + } KeInitializeEvent(&Event, NotificationEvent, FALSE); @@ -391,6 +400,11 @@ AFD_DbgPrint(MAX_TRACE, ("Called\n")); DeviceObject = IoGetRelatedDeviceObject(ConnectionObject); + if (!DeviceObject) { + AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + *Irp = NULL; + return STATUS_INVALID_PARAMETER; + } Status = TdiBuildNullConnectionInfo(RequestConnectionInfo, TDI_ADDRESS_TYPE_IP); @@ -452,6 +466,10 @@ assert(FileObject); DeviceObject = IoGetRelatedDeviceObject(FileObject); + if (!DeviceObject) { + AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + return STATUS_INVALID_PARAMETER; + } KeInitializeEvent(&Event, NotificationEvent, FALSE); @@ -508,6 +526,10 @@ PIRP Irp; DeviceObject = IoGetRelatedDeviceObject(FileObject); + if (!DeviceObject) { + AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + return STATUS_INVALID_PARAMETER; + } KeInitializeEvent(&Event, NotificationEvent, FALSE); @@ -553,6 +575,10 @@ PIRP Irp; DeviceObject = IoGetRelatedDeviceObject(FileObject); + if (!DeviceObject) { + AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + return STATUS_INVALID_PARAMETER; + } KeInitializeEvent(&Event, NotificationEvent, FALSE); @@ -774,6 +800,7 @@ DeviceObject = IoGetRelatedDeviceObject(TransportObject); if (!DeviceObject) { AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + *Irp = NULL; return STATUS_INVALID_PARAMETER; } @@ -799,6 +826,7 @@ if (!Mdl) { AFD_DbgPrint(MIN_TRACE, ("Insufficient resources.\n")); IoFreeIrp(*Irp); + *Irp = NULL; return STATUS_INSUFFICIENT_RESOURCES; } @@ -807,11 +835,13 @@ } _SEH_HANDLE { AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n")); IoFreeIrp(*Irp); + *Irp = NULL; Status = STATUS_INSUFFICIENT_RESOURCES; } _SEH_END; if( !NT_SUCCESS(Status) ) { IoFreeIrp(*Irp); + *Irp = NULL; return Status; } @@ -850,6 +880,7 @@ DeviceObject = IoGetRelatedDeviceObject(TransportObject); if (!DeviceObject) { AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + *Irp = NULL; return STATUS_INVALID_PARAMETER; } @@ -875,6 +906,7 @@ if (!Mdl) { AFD_DbgPrint(MIN_TRACE, ("Insufficient resources.\n")); IoFreeIrp(*Irp); + *Irp = NULL; return STATUS_INSUFFICIENT_RESOURCES; } @@ -885,11 +917,13 @@ } _SEH_HANDLE { AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n")); IoFreeIrp(*Irp); + *Irp = NULL; Status = STATUS_INSUFFICIENT_RESOURCES; } _SEH_END; if( !NT_SUCCESS(Status) ) { IoFreeIrp(*Irp); + *Irp = NULL; return Status; } @@ -945,6 +979,7 @@ DeviceObject = IoGetRelatedDeviceObject(TransportObject); if (!DeviceObject) { AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + *Irp = NULL; return STATUS_INVALID_PARAMETER; } @@ -970,6 +1005,7 @@ if (!Mdl) { AFD_DbgPrint(MIN_TRACE, ("Insufficient resources.\n")); IoFreeIrp(*Irp); + *Irp = NULL; return STATUS_INSUFFICIENT_RESOURCES; } @@ -978,6 +1014,7 @@ } _SEH_HANDLE { AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n")); IoFreeIrp(*Irp); + *Irp = NULL; _SEH_YIELD(return STATUS_INSUFFICIENT_RESOURCES); } _SEH_END; @@ -1033,6 +1070,7 @@ DeviceObject = IoGetRelatedDeviceObject(TransportObject); if (!DeviceObject) { AFD_DbgPrint(MIN_TRACE, ("Bad device object.\n")); + *Irp = NULL; return STATUS_INVALID_PARAMETER; } @@ -1059,6 +1097,7 @@ if (!Mdl) { AFD_DbgPrint(MIN_TRACE, ("Insufficient resources.\n")); IoFreeIrp(*Irp); + *Irp = NULL; return STATUS_INSUFFICIENT_RESOURCES; } @@ -1067,6 +1106,7 @@ } _SEH_HANDLE { AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n")); IoFreeIrp(*Irp); + *Irp = NULL; _SEH_YIELD(return STATUS_INSUFFICIENT_RESOURCES); } _SEH_END;
16 years, 4 months
1
0
0
0
[tkreuzer] 34942: - add stubbed out mm/amd64/page.c - add amd64 specific mm.h - add a temp hack (can't inline a function with SEH atm) - add baseaddress and entrypoint to ntoskrnl rbuild - add all mm files to ntoskrnl rbuild - update subs file
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jul 29 19:54:12 2008 New Revision: 34942 URL:
http://svn.reactos.org/svn/reactos?rev=34942&view=rev
Log: - add stubbed out mm/amd64/page.c - add amd64 specific mm.h - add a temp hack (can't inline a function with SEH atm) - add baseaddress and entrypoint to ntoskrnl rbuild - add all mm files to ntoskrnl rbuild - update subs file Added: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/page.c (with props) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ntoskrnl.h branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-amd64hack.rbuild Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c [iso-8859-1] Tue Jul 29 19:54:12 2008 @@ -15,39 +15,25 @@ STUB(KeBugcheckCallbackListHead) STUB(NtAdjustGroupsToken) STUB(NtAdjustPrivilegesToken) -STUB(NtAllocateUserPhysicalPages) -STUB(NtAreMappedFilesTheSame) -STUB(MmUserProbeAddress) -STUB(MmSizeOfMdl) -STUB(MmBuildMdlForNonPagedPool) -STUB(MmMapViewOfSection) STUB(ExpInterlockedPushEntrySList) -STUB(ExAllocatePool) -STUB(ExFreePool) -STUB(ExFreePoolWithTag) -STUB(ExAllocatePoolWithTag) STUB(PsGetCurrentThreadId) STUB(NtContinue) STUB(NtCreateEvent) STUB(NtCreateMutant) -STUB(NtCreateSection) STUB(NtCreateSemaphore) STUB(NtCreateThread) STUB(NtCreateTimer) STUB(NtCreateToken) STUB(NtDebugContinue) STUB(NtDuplicateToken) -STUB(NtExtendSection) STUB(NtFilterToken) STUB(NtFlushInstructionCache) -STUB(NtFreeUserPhysicalPages) STUB(NtDebugActiveProcess) STUB(KeActiveProcessors) STUB(KeDisableInterrupts) STUB(KiSwapContext) STUB(KeContextToTrapFrame) STUB(KiDispatchException) -STUB(MmSystemRangeStart) STUB(MiGetUserPageDirectoryCount) STUB(MmStats) STUB(PsCreateSystemThread) @@ -55,7 +41,6 @@ STUB(ExReleaseResourceLock) STUB(MiNonPagedPoolLength) STUB(MiNonPagedPoolStart) -STUB(MmGetPfnForProcess) STUB(KiInitializeUserApc) STUB(KiComputeTimerTableIndex) STUB(KeBugcheckReasonCallbackListHead) @@ -67,42 +52,30 @@ STUB(NtCreateDebugObject) STUB(NtCreateIoCompletion) STUB(NtEnumerateSystemEnvironmentValuesEx) -STUB(NtFlushVirtualMemory) -STUB(NtGetWriteWatch) STUB(NtImpersonateAnonymousToken) -STUB(NtLockVirtualMemory) -STUB(NtMapUserPhysicalPages) -STUB(NtMapUserPhysicalPagesScatter) -STUB(NtMapViewOfSection) STUB(NtOpenEvent) STUB(NtOpenIoCompletion) STUB(NtOpenMutant) -STUB(NtOpenSection) STUB(NtOpenSemaphore) STUB(NtOpenThread) STUB(NtOpenThreadToken) STUB(NtOpenTimer) -STUB(NtProtectVirtualMemory) STUB(NtPulseEvent) STUB(NtQueryEvent) STUB(NtQueryInformationToken) STUB(NtQueryIoCompletion) STUB(NtQueryMutant) -STUB(NtQuerySection) STUB(NtQuerySemaphore) STUB(NtQuerySystemEnvironmentValue) STUB(NtQuerySystemEnvironmentValueEx) STUB(NtQuerySystemInformation) STUB(NtQueryTimer) -STUB(NtQueryVirtualMemory) STUB(NtRaiseException) -STUB(NtReadVirtualMemory) STUB(NtReleaseMutant) STUB(NtReleaseSemaphore) STUB(NtRemoveIoCompletion) STUB(NtRemoveProcessDebug) STUB(NtResetEvent) -STUB(NtResetWriteWatch) STUB(NtSetEvent) STUB(NtSetEventBoostPriority) STUB(NtSetInformationTokenNtSetInformationDebugObject) @@ -112,32 +85,22 @@ STUB(NtSetSystemEnvironmentValueEx) STUB(NtSetSystemInformation) STUB(NtSetTimer) -STUB(NtUnlockVirtualMemory) -STUB(NtUnmapViewOfSection) STUB(NtVdmControl) STUB(NtWaitForDebugEvent) -STUB(NtWriteVirtualMemory) STUB(NtGetCurrentProcessorNumber) STUB(NtOpenThreadTokenEx) STUB(NtSetInformationDebugObject) STUB(NtSetInformationToken) STUB(KiSwapProcess) -STUB(MmUpdatePageDir) STUB(KeGetCurrentProcessorNumber) -STUB(MmDeleteKernelStack) -STUB(MmCreateKernelStack) STUB(Ke386InitThreadWithContext) -STUB(MmUnmapLockedPages) STUB(ExpInterlockedPopEntrySList) -STUB(MmGetPhysicalAddress) -STUB(MmFreeSectionSegments) STUB(ExAllocateFromNPagedLookasideList) STUB(ExInitializeNPagedLookasideList) STUB(SeTokenType) STUB(RtlGetCallersAddress) STUB(RtlCompareMemory) STUB(DbgkpSendApiMessage) -STUB(MmGetFileNameForSection) STUB(DbgkpTraceLevel) STUB(ExpInitializeEventImplementation) STUB(ExpInitializeMutantImplementation) @@ -145,31 +108,23 @@ STUB(ExpInitializeTimerImplementation) STUB(ExpEnvironmentLock) STUB(ExpFirmwareTableProviderListHead) -STUB(MmSectionObjectType) STUB(IoAcquireCancelSpinLock) STUB(IoReleaseCancelSpinLock) STUB(ExInterlockedInsertTailList) STUB(ExInterlockedRemoveHeadList) STUB(ExInterlockedAddLargeStatistic) -STUB(MmProbeAndLockPages) STUB(IopCompletionMapping) STUB(CmpInitializeMachineDependentConfiguration) STUB(ExpInitLookasideLists) STUB(ExpFirmwareTableResource) -STUB(MmMapViewInSystemSpace) STUB(MmNumberOfPhysicalPages) -STUB(MmInitSystem) STUB(RtlInitializeRangeListPackage) STUB(ExInitPoolLookasidePointers) STUB(KiInitializeBugCheck) -STUB(MmHighestUserAddress) STUB(DbgkInitialize) -STUB(MmCreateMdl) STUB(MmMapLockedPage) STUB(PsThreadType) -STUB(MiShutdownMemoryManager) STUB(ExfInterlockedCompareExchange64) -STUB(ExAllocatePoolWithQuotaTag) STUB(ExInitializePagedLookasideList) STUB(ExInterlockedInsertHeadList) STUB(IoCheckEaBufferValidity) @@ -179,58 +134,28 @@ STUB(IoCompletionPacketLookaside) STUB(CancelSpinLock) STUB(KdbpCliInit) -STUB(MmUnlockPages) STUB(KeDisconnectInterrupt) STUB(KeInitializeInterrupt) -STUB(MmUnmapViewOfSection) STUB(MiFreeDescriptor) STUB(MmPfnDatabase) STUB(MmHighestPhysicalPage) -STUB(MmIsPagePresent) -STUB(MmCreateVirtualMappingForKernel) -STUB(MmSetPageProtect) STUB(MiFreeDescriptorOrg) -STUB(MmMapLockedPages) STUB(_PsThreadType) STUB(_ExEventObjectType) -STUB(MmCreateHyperspaceMapping) -STUB(MmDeleteHyperspaceMapping) -STUB(MmCreateVirtualMapping) -STUB(MmRawDeleteVirtualMapping) -STUB(MmIsPageSwapEntry) -STUB(MmDeletePageFileMapping) STUB(KeRosDumpStackFrames) STUB(RtlWalkFrameChain) -STUB(MmCommitPagedPoolAddress) -STUB(MmIsDirtyPage) -STUB(MmSetDirtyPage) -STUB(MmSetCleanPage) -STUB(MmPageOutSectionView) -STUB(MmAllocateSection) -STUB(MmDeleteVirtualMapping) STUB(ExSystemLookasideListHead) STUB(PspGetOrSetContextKernelRoutine) STUB(PspW32ThreadCallout) STUB(ExTimerRundown) STUB(KeConnectInterrupt) -STUB(MmWritePageSectionView) STUB(ExInitializeSystemLookasideList) STUB(KeRaiseUserException) STUB(PsIsThreadTerminating) STUB(ExMutantObjectType) STUB(_ExSemaphoreObjectType) -STUB(MmCleanProcessAddressSpace) -STUB(MmDeleteProcessAddressSpace) -STUB(MmDeleteTeb) STUB(DbgkClearProcessDebugObject) -STUB(MmSetMemoryPriorityProcess) -STUB(MmInitializeHandBuiltProcess) -STUB(MmInitializeHandBuiltProcess2) -STUB(MmInitializeProcessAddressSpace) -STUB(MmCreatePeb) -STUB(MmQuerySystemSize) STUB(KeFeatureBits) -STUB(MmGetFileObjectForSection) STUB(SepTokenObjectType) STUB(SeExchangePrimaryToken) STUB(SeIsTokenChild) @@ -255,7 +180,6 @@ STUB(PspW32ProcessCallout) STUB(DbgkDebugObjectType) STUB(DbgkCopyProcessDebugPort) -STUB(MmCreateProcessAddressSpace) STUB(SeAssignPrimaryToken) STUB(SeDeassignPrimaryToken) STUB(SepCreateSystemProcessToken) @@ -287,15 +211,12 @@ STUB(RtlpCreateAtomHandle) STUB(RtlInitializeContext) STUB(RtlpCurrentPeb) - STUB(DbgCommandString) STUB(ExAcquireRundownProtection) STUB(ExAcquireRundownProtectionCacheAware) STUB(ExAcquireRundownProtectionCacheAwareEx) STUB(ExAcquireRundownProtectionEx) STUB(ExAllocateFromPagedLookasideList) -STUB(ExAllocatePoolWithQuota) -STUB(ExAllocatePoolWithTagPriority) STUB(ExDeleteNPagedLookasideList) STUB(ExDeletePagedLookasideList) STUB(ExEnterCriticalRegionAndAcquireResourceShared) @@ -311,7 +232,6 @@ STUB(ExInterlockedPushEntryList) STUB(ExIsProcessorFeaturePresent) STUB(ExQueryDepthSList) -STUB(ExQueryPoolBlockSize) STUB(ExRaiseException) STUB(ExRaiseStatus) STUB(ExReInitializeRundownProtection) @@ -418,51 +338,11 @@ STUB(KfRaiseIrql) STUB(KiBugCheckData) STUB(KiCpuId) -STUB(Mm64BitPhysicalAddress) -STUB(MmAdjustWorkingSetSize) -STUB(MmAdvanceMdl) -STUB(MmAllocateContiguousMemory) -STUB(MmAllocateContiguousMemorySpecifyCache) -STUB(MmAllocateMappingAddress) -STUB(MmAllocateNonCachedMemory) -STUB(MmAllocatePagesForMdl) STUB(MmAllocatePagesForMdlEx) -STUB(MmCanFileBeTruncated) STUB(MmCommitSessionMappedView) STUB(MmCreateMirror) -STUB(MmCreateSection) -STUB(MmDisableModifiedWriteOfSection) -STUB(MmFlushImageSection) -STUB(MmForceSectionClosed) -STUB(MmFreeContiguousMemory) -STUB(MmFreeContiguousMemorySpecifyCache) -STUB(MmFreeMappingAddress) -STUB(MmFreeNonCachedMemory) -STUB(MmFreePagesFromMdl) -STUB(MmGetVirtualForPhysical) -STUB(MmGrowKernelStack) -STUB(MmIsAddressValid) STUB(MmIsIoSpaceActive) -STUB(MmIsNonPagedSystemAddressValid) -STUB(MmIsThisAnNtAsSystem) STUB(MmLockPagableImageSection) -STUB(MmMapLockedPagesSpecifyCache) -STUB(MmMapLockedPagesWithReservedMapping) -STUB(MmMapMemoryDumpMdl) -STUB(MmMapVideoDisplay) -STUB(MmMapViewInSessionSpace) -STUB(MmPrefetchPages) -STUB(MmProbeAndLockProcessPages) -STUB(MmProbeAndLockSelectedPages) -STUB(MmProtectMdlSystemAddress) -STUB(MmSecureVirtualMemory) -STUB(MmSetAddressRangeModified) -STUB(MmSetBankedSection) -STUB(MmUnmapReservedMapping) -STUB(MmUnmapVideoDisplay) -STUB(MmUnmapViewInSessionSpace) -STUB(MmUnmapViewInSystemSpace) -STUB(MmUnsecureVirtualMemory) STUB(NlsOemLeadByteInfo) STUB(ObDeleteCapturedInsertInfo) STUB(ObSetHandleAttributes) @@ -564,11 +444,3 @@ STUB(KeReleaseInStackQueuedSpinLock) STUB(KfAcquireSpinLock) STUB(KeBugCheck) -STUB(MmMapIoSpace) -STUB(MmUnmapIoSpace) -STUB(MmFindRegion) -STUB(MmAlterRegion) -STUB(MmInitializeRegion) -STUB(MmDisableVirtualMapping) -STUB(MmCreatePageFileMapping) -STUB(MmEnableVirtualMapping) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/mm.h [iso-8859-1] Tue Jul 29 19:54:12 2008 @@ -6,7 +6,7 @@ #define __NTOSKRNL_INCLUDE_INTERNAL_I386_MM_H struct _EPROCESS; -PULONG MmGetPageDirectory(VOID); +PULONG_PTR MmGetPageDirectory(VOID); #define PAGE_MASK(x) ((x)&(~0xfff)) #define PAE_PAGE_MASK(x) ((x)&(~0xfffLL)) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ntoskrnl.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ntoskrnl.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ntoskrnl.h [iso-8859-1] Tue Jul 29 19:54:12 2008 @@ -35,9 +35,13 @@ #define InterlockedExchangeAdd _InterlockedExchangeAdd #include "ke.h" +#ifdef _M_AMD64 +#include "amd64/mm.h" +#else #include "i386/mm.h" #include "i386/fpu.h" #include "i386/v86m.h" +#endif #include "ob.h" #include "mm.h" #include "ex.h" @@ -136,7 +140,11 @@ #define IQS(TypeQuery, TypeSet, AlignmentQuery, AlignmentSet, Flags) \ { sizeof(TypeQuery), sizeof(TypeSet), sizeof(AlignmentQuery), sizeof(AlignmentSet), Flags } +#ifndef _M_AMD64 FORCEINLINE +#else +static inline +#endif NTSTATUS DefaultSetInfoBufferCheck(ULONG Class, const INFORMATION_CLASS_INFO *ClassList, @@ -186,7 +194,11 @@ return Status; } +#ifndef _M_AMD64 FORCEINLINE +#else +static inline +#endif NTSTATUS DefaultQueryInfoBufferCheck(ULONG Class, const INFORMATION_CLASS_INFO *ClassList, Added: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/page.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/page.c (added) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/page.c [iso-8859-1] Tue Jul 29 19:54:12 2008 @@ -1,0 +1,323 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS kernel + * FILE: ntoskrnl/mm/i386/page.c + * PURPOSE: Low level memory managment manipulation + * + * PROGRAMMERS: David Welch (welch(a)cwcom.net) + */ + +/* INCLUDES ***************************************************************/ + +#include <ntoskrnl.h> +#define NDEBUG +#include <internal/debug.h> + +#if defined (ALLOC_PRAGMA) +#pragma alloc_text(INIT, MmInitGlobalKernelPageDirectory) +#pragma alloc_text(INIT, MiInitPageDirectoryMap) +#endif + + +/* GLOBALS *****************************************************************/ + + + +/* FUNCTIONS ***************************************************************/ + +BOOLEAN MmUnmapPageTable(PULONG Pt); + +ULONG_PTR +NTAPI +MiFlushTlbIpiRoutine(ULONG_PTR Address) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +MiFlushTlb(PULONG Pt, PVOID Address) +{ + UNIMPLEMENTED; +} + + + +PULONG_PTR +MmGetPageDirectory(VOID) +{ + return (PULONG_PTR)__readcr3(); +} + +static ULONG +ProtectToPTE(ULONG flProtect) +{ + +} + +NTSTATUS +NTAPI +Mmi386ReleaseMmInfo(PEPROCESS Process) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSTATUS +NTAPI +MmInitializeHandBuiltProcess(IN PEPROCESS Process, + IN PLARGE_INTEGER DirectoryTableBase) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +BOOLEAN +STDCALL +MmCreateProcessAddressSpace(IN ULONG MinWs, + IN PEPROCESS Process, + IN PLARGE_INTEGER DirectoryTableBase) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +NTAPI +MmDeletePageTable(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +MmFreePageTable(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; +} + +BOOLEAN MmUnmapPageTable(PULONG Pt) +{ + UNIMPLEMENTED; + return FALSE; +} + +PFN_TYPE +NTAPI +MmGetPfnForProcess(PEPROCESS Process, + PVOID Address) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +NTAPI +MmDisableVirtualMapping(PEPROCESS Process, PVOID Address, BOOLEAN* WasDirty, PPFN_TYPE Page) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +MmRawDeleteVirtualMapping(PVOID Address) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +MmDeleteVirtualMapping(PEPROCESS Process, PVOID Address, BOOLEAN FreePage, + BOOLEAN* WasDirty, PPFN_TYPE Page) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +MmDeletePageFileMapping(PEPROCESS Process, PVOID Address, + SWAPENTRY* SwapEntry) +{ + UNIMPLEMENTED; +} + +BOOLEAN +Mmi386MakeKernelPageTableGlobal(PVOID PAddress) +{ + UNIMPLEMENTED; + return FALSE; +} + +BOOLEAN +NTAPI +MmIsDirtyPage(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; + return FALSE; +} + +BOOLEAN +NTAPI +MmIsAccessedAndResetAccessPage(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +NTAPI +MmSetCleanPage(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +MmSetDirtyPage(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +MmEnableVirtualMapping(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; +} + +BOOLEAN +NTAPI +MmIsPagePresent(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; + return 0; +} + +BOOLEAN +NTAPI +MmIsPageSwapEntry(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; + return 0; +} + +NTSTATUS +NTAPI +MmCreateVirtualMappingForKernel(PVOID Address, + ULONG flProtect, + PPFN_TYPE Pages, + ULONG PageCount) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSTATUS +NTAPI +MmCreatePageFileMapping(PEPROCESS Process, + PVOID Address, + SWAPENTRY SwapEntry) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + + +NTSTATUS +NTAPI +MmCreateVirtualMappingUnsafe(PEPROCESS Process, + PVOID Address, + ULONG flProtect, + PPFN_TYPE Pages, + ULONG PageCount) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSTATUS +NTAPI +MmCreateVirtualMapping(PEPROCESS Process, + PVOID Address, + ULONG flProtect, + PPFN_TYPE Pages, + ULONG PageCount) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +ULONG +NTAPI +MmGetPageProtect(PEPROCESS Process, PVOID Address) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +NTAPI +MmSetPageProtect(PEPROCESS Process, PVOID Address, ULONG flProtect) +{ + UNIMPLEMENTED; +} + +/* + * @implemented + */ +PHYSICAL_ADDRESS STDCALL +MmGetPhysicalAddress(PVOID vaddr) +{ + PHYSICAL_ADDRESS ret = {{0}}; + UNIMPLEMENTED; + return ret; +} + +PVOID +NTAPI +MmCreateHyperspaceMapping(PFN_TYPE Page) +{ + UNIMPLEMENTED; + return NULL; +} + +PFN_TYPE +NTAPI +MmChangeHyperspaceMapping(PVOID Address, PFN_TYPE NewPage) +{ + UNIMPLEMENTED; + return 0; +} + +PFN_TYPE +NTAPI +MmDeleteHyperspaceMapping(PVOID Address) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +NTAPI +MmUpdatePageDir(PEPROCESS Process, PVOID Address, ULONG Size) +{ + UNIMPLEMENTED; +} + +VOID +INIT_FUNCTION +NTAPI +MmInitGlobalKernelPageDirectory(VOID) +{ + UNIMPLEMENTED; +} + +VOID +INIT_FUNCTION +NTAPI +MiInitPageDirectoryMap(VOID) +{ + UNIMPLEMENTED; +} + +/* EOF */ Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/page.c ------------------------------------------------------------------------------ svn:eol-style = native Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-amd64hack.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-amd64hack.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-amd64hack.rbuild [iso-8859-1] Tue Jul 29 19:54:12 2008 @@ -1,6 +1,6 @@ <?xml version="1.0"?> <!DOCTYPE module SYSTEM "../tools/rbuild/project.dtd"> -<module name="ntoskrnl" type="kernel" installbase="system32" installname="ntoskrnl.exe" allowwarnings="true"> +<module name="ntoskrnl" type="kernel" installbase="system32" installname="ntoskrnl.exe" baseaddress="0xfffff80000800000" entrypoint="KiSystemStartup" allowwarnings="true"> <bootstrap installbase="$(CDOUTPUT)" /> <importlibrary definition="ntoskrnl_$(ARCH).def" /> <define name="_DISABLE_TIDENTS" /> @@ -358,20 +358,25 @@ <file>page.c</file> </directory> </if> + <if property="ARCH" value="amd64"> + <directory name="amd64"> + <file>page.c</file> + </directory> + </if> <file>anonmem.c</file> <file>aspace.c</file> <file>balance.c</file> - <!-- file>cont.c</file --> + <file>cont.c</file> <file>drvlck.c</file> <file>freelist.c</file> - <!-- file>iospace.c</file --> + <file>iospace.c</file> <file>kmap.c</file> <file>marea.c</file> - <!-- file>mdlsup.c</file --> - <!-- file>mm.c</file --> - <!-- file>mminit.c</file --> + <file>mdlsup.c</file> + <file>mm.c</file> + <file>mminit.c</file> <file>mpw.c</file> - <!-- file>ncache.c</file --> + <file>ncache.c</file> <file>npool.c</file> <file>pagefile.c</file> <file>pageop.c</file> @@ -380,15 +385,15 @@ <file>paging.c</file> <file>pe.c</file> <file>physical.c</file> - <!-- file>pool.c</file --> + <file>pool.c</file> <file>ppool.c</file> - <!-- file>procsup.c</file --> - <!-- file>region.c</file --> + <file>procsup.c</file> + <file>region.c</file> <file>rmap.c</file> - <!-- file>section.c</file --> + <file>section.c</file> <file>sysldr.c</file> <file>verifier.c</file> - <!-- file>virtual.c</file --> + <file>virtual.c</file> <file>wset.c</file> <if property="_ELF_" value="1"> <file>elf32.c</file>
16 years, 4 months
1
0
0
0
[tkreuzer] 34941: - fix usage of InterlockedExchangeAddSizeT
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jul 29 19:31:41 2008 New Revision: 34941 URL:
http://svn.reactos.org/svn/reactos?rev=34941&view=rev
Log: - fix usage of InterlockedExchangeAddSizeT Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h [iso-8859-1] Tue Jul 29 19:31:41 2008 @@ -934,8 +934,8 @@ ASSERT(PushLock->Waiting || PushLock->Shared == 0); /* Unlock the pushlock */ - OldValue.Value = InterlockedExchangeAddSizeT((PLONG)PushLock, - -(LONG)EX_PUSH_LOCK_LOCK); + OldValue.Value = InterlockedExchangeAddSizeT((PSIZE_T)PushLock, + -(SIZE_T)EX_PUSH_LOCK_LOCK); /* Sanity checks */ ASSERT(OldValue.Locked);
16 years, 4 months
1
0
0
0
[tkreuzer] 34940: - fix ExQueryPoolBlockSize prototype - make KI_USER_SHARED_DATA and IMAGE_ORDINAL_FLAG64 a ULONGLONG - fix definition if IMAGE_OPTIONAL_HEADER64 - add KPCR structure - add __readcrx intrinsics -
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jul 29 19:30:00 2008 New Revision: 34940 URL:
http://svn.reactos.org/svn/reactos?rev=34940&view=rev
Log: - fix ExQueryPoolBlockSize prototype - make KI_USER_SHARED_DATA and IMAGE_ORDINAL_FLAG64 a ULONGLONG - fix definition if IMAGE_OPTIONAL_HEADER64 - add KPCR structure - add __readcrx intrinsics - Modified: branches/ros-amd64-bringup/reactos/include/ddk/ntifs.h branches/ros-amd64-bringup/reactos/include/ddk/winddk.h branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h branches/ros-amd64-bringup/reactos/include/psdk/winnt.h Modified: branches/ros-amd64-bringup/reactos/include/ddk/ntifs.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/ddk/ntifs.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/ddk/ntifs.h [iso-8859-1] Tue Jul 29 19:30:00 2008 @@ -2499,7 +2499,7 @@ ); NTKERNELAPI -ULONG +SIZE_T NTAPI ExQueryPoolBlockSize ( IN PVOID PoolBlock, Modified: branches/ros-amd64-bringup/reactos/include/ddk/winddk.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/ddk/winddk.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/ddk/winddk.h [iso-8859-1] Tue Jul 29 19:30:00 2008 @@ -5485,7 +5485,28 @@ #define PROFILE_LEVEL 15 #define HIGH_LEVEL 15 -#define KI_USER_SHARED_DATA 0xFFFFF78000000000 +#define KI_USER_SHARED_DATA 0xFFFFF78000000000ULL + +typedef struct _KPCR +{ + NT_TIB NtTib; + struct _KPRCB *CurrentPrcb; + ULONG64 SavedRcx; + ULONG64 SavedR11; + KIRQL Irql; + UCHAR SecondLevelCacheAssociativity; + UCHAR Number; + UCHAR Fill0; + ULONG Irr; + ULONG IrrActive; + ULONG Idr; + USHORT MajorVersion; + USHORT MinorVersion; + ULONG StallScaleFactor; + union _KIDTENTRY64 *IdtBase; + union _KGDTENTRY64 *GdtBase; + struct _KTSS64 *TssBase; +} KPCR, *PKPCR; typedef struct _KFLOATING_SAVE { ULONG Dummy; @@ -5502,6 +5523,13 @@ NTAPI KeGetCurrentThread( VOID); + +FORCEINLINE +ULONG +KeGetCurrentProcessorNumber(VOID) +{ + return (ULONG)__readgsbyte(FIELD_OFFSET(KPCR, Number)); +} #elif defined(__PowerPC__) Modified: branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/psdk/intrin_x86.h [iso-8859-1] Tue Jul 29 19:30:00 2008 @@ -1050,6 +1050,67 @@ /*** Protected memory management ***/ + +#ifdef _M_AMD64 +static __inline__ __attribute__((always_inline)) void __writecr0(const unsigned long long Data) +{ + __asm__("movq %q[Data], %%cr0" : : [Data] "q" (Data) : "memory"); +} + +static __inline__ __attribute__((always_inline)) void __writecr3(const unsigned long long Data) +{ + __asm__("movq %q[Data], %%cr3" : : [Data] "q" (Data) : "memory"); +} + +static __inline__ __attribute__((always_inline)) void __writecr4(const unsigned long long Data) +{ + __asm__("movq %q[Data], %%cr4" : : [Data] "q" (Data) : "memory"); +} + +static __inline__ __attribute__((always_inline)) unsigned long long __readcr0(void) +{ + unsigned long long value; + __asm__ __volatile__("movq %%cr0, %q[value]" : [value] "=q" (value)); + return value; +} + +static __inline__ __attribute__((always_inline)) unsigned long long __readcr2(void) +{ + unsigned long long value; + __asm__ __volatile__("movq %%cr2, %q[value]" : [value] "=q" (value)); + return value; +} + +static __inline__ __attribute__((always_inline)) unsigned long long __readcr3(void) +{ + unsigned long long value; + __asm__ __volatile__("movq %%cr3, %q[value]" : [value] "=q" (value)); + return value; +} + +static __inline__ __attribute__((always_inline)) unsigned long long __readcr4(void) +{ + unsigned long long value; + __asm__ __volatile__("movq %%cr4, %q[value]" : [value] "=q" (value)); + return value; +} + +#else +static __inline__ __attribute__((always_inline)) void __writecr0(const unsigned long long Data) +{ + __asm__("mov %[Data], %%cr0" : : [Data] "q" ((const unsigned long)(Data & 0xFFFFFFFF)) : "memory"); +} + +static __inline__ __attribute__((always_inline)) void __writecr3(const unsigned long long Data) +{ + __asm__("mov %[Data], %%cr3" : : [Data] "q" ((const unsigned long)(Data & 0xFFFFFFFF)) : "memory"); +} + +static __inline__ __attribute__((always_inline)) void __writecr4(const unsigned long long Data) +{ + __asm__("mov %[Data], %%cr4" : : [Data] "q" ((const unsigned long)(Data & 0xFFFFFFFF)) : "memory"); +} + static __inline__ __attribute__((always_inline)) unsigned long __readcr0(void) { unsigned long value; @@ -1078,36 +1139,6 @@ return value; } -#ifdef _M_AMD64 -static __inline__ __attribute__((always_inline)) void __writecr0(const unsigned long long Data) -{ - __asm__("movq %q[Data], %%cr0" : : [Data] "q" (Data) : "memory"); -} - -static __inline__ __attribute__((always_inline)) void __writecr3(const unsigned long long Data) -{ - __asm__("movq %q[Data], %%cr3" : : [Data] "q" (Data) : "memory"); -} - -static __inline__ __attribute__((always_inline)) void __writecr4(const unsigned long long Data) -{ - __asm__("movq %q[Data], %%cr4" : : [Data] "q" (Data) : "memory"); -} -#else -static __inline__ __attribute__((always_inline)) void __writecr0(const unsigned long long Data) -{ - __asm__("mov %[Data], %%cr0" : : [Data] "q" ((const unsigned long)(Data & 0xFFFFFFFF)) : "memory"); -} - -static __inline__ __attribute__((always_inline)) void __writecr3(const unsigned long long Data) -{ - __asm__("mov %[Data], %%cr3" : : [Data] "q" ((const unsigned long)(Data & 0xFFFFFFFF)) : "memory"); -} - -static __inline__ __attribute__((always_inline)) void __writecr4(const unsigned long long Data) -{ - __asm__("mov %[Data], %%cr4" : : [Data] "q" ((const unsigned long)(Data & 0xFFFFFFFF)) : "memory"); -} #endif static __inline__ __attribute__((always_inline)) void __invlpg(void * const Address) Modified: branches/ros-amd64-bringup/reactos/include/psdk/winnt.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/psdk/winnt.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/psdk/winnt.h [iso-8859-1] Tue Jul 29 19:30:00 2008 @@ -3388,7 +3388,7 @@ WORD MinorImageVersion; WORD MajorSubsystemVersion; WORD MinorSubsystemVersion; - DWORD Reserved1; + DWORD Win32VersionValue; DWORD SizeOfImage; DWORD SizeOfHeaders; DWORD CheckSum; @@ -3647,7 +3647,7 @@ } IMAGE_THUNK_DATA32; typedef IMAGE_THUNK_DATA32 *PIMAGE_THUNK_DATA32; -#define IMAGE_ORDINAL_FLAG64 0x8000000000000000 +#define IMAGE_ORDINAL_FLAG64 0x8000000000000000ULL #define IMAGE_ORDINAL_FLAG32 0x80000000 #define IMAGE_ORDINAL64(Ordinal) (Ordinal & 0xffff) #define IMAGE_ORDINAL32(Ordinal) (Ordinal & 0xffff)
16 years, 4 months
1
0
0
0
[tkreuzer] 34939: fix several ULONG / ULONG_PTR / SIZE_T issues.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Tue Jul 29 19:25:15 2008 New Revision: 34939 URL:
http://svn.reactos.org/svn/reactos?rev=34939&view=rev
Log: fix several ULONG / ULONG_PTR / SIZE_T issues. Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/cont.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/iospace.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mdlsup.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mm.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ncache.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/pool.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/procsup.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/region.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/rpoolmgr.h branches/ros-amd64-bringup/reactos/ntoskrnl/mm/section.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/sysldr.c branches/ros-amd64-bringup/reactos/ntoskrnl/mm/virtual.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/cont.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/cont.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/cont.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -225,7 +225,7 @@ */ VOID STDCALL MmFreeContiguousMemorySpecifyCache(IN PVOID BaseAddress, - IN ULONG NumberOfBytes, + IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType) { MmLockAddressSpace(MmGetKernelAddressSpace()); Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/iospace.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/iospace.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/iospace.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -137,7 +137,7 @@ */ VOID STDCALL MmUnmapIoSpace (IN PVOID BaseAddress, - IN ULONG NumberOfBytes) + IN SIZE_T NumberOfBytes) { LONG Offset; PVOID Address = BaseAddress; @@ -163,7 +163,7 @@ */ PVOID STDCALL MmMapVideoDisplay (IN PHYSICAL_ADDRESS PhysicalAddress, - IN ULONG NumberOfBytes, + IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType) { return MmMapIoSpace (PhysicalAddress, NumberOfBytes, (BOOLEAN)CacheType); @@ -175,7 +175,7 @@ */ VOID STDCALL MmUnmapVideoDisplay (IN PVOID BaseAddress, - IN ULONG NumberOfBytes) + IN SIZE_T NumberOfBytes) { MmUnmapIoSpace (BaseAddress, NumberOfBytes); } Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mdlsup.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mdlsup.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mdlsup.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -81,7 +81,7 @@ NTAPI MmCreateMdl(IN PMDL Mdl, IN PVOID Base, - IN ULONG Length) + IN SIZE_T Length) { ULONG Size; @@ -107,7 +107,7 @@ ULONG NTAPI MmSizeOfMdl(IN PVOID Base, - IN ULONG Length) + IN SIZE_T Length) { /* Return the MDL size */ return sizeof(MDL) + (ADDRESS_AND_SIZE_TO_SPAN_PAGES(Base, Length) * sizeof(PFN_NUMBER)); Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mm.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mm.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mm.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -14,7 +14,7 @@ /* GLOBALS *****************************************************************/ -ULONG MmUserProbeAddress = 0; +ULONG_PTR MmUserProbeAddress = 0; PVOID MmHighestUserAddress = NULL; PBOOLEAN Mm64BitPhysicalAddress = FALSE; PVOID MmSystemRangeStart = NULL; @@ -394,7 +394,7 @@ NTAPI NtResetWriteWatch(IN HANDLE ProcessHandle, IN PVOID BaseAddress, - IN ULONG RegionSize) + IN SIZE_T RegionSize) { UNIMPLEMENTED; return STATUS_NOT_IMPLEMENTED; Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/mminit.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -374,7 +374,7 @@ if (MiDbgEnableMdDump) MiDbgDumpMemoryDescriptors(); /* Set the page directory */ - PsGetCurrentProcess()->Pcb.DirectoryTableBase.LowPart = (ULONG)MmGetPageDirectory(); + PsGetCurrentProcess()->Pcb.DirectoryTableBase.QuadPart = (ULONG_PTR)MmGetPageDirectory(); /* Get the size of FreeLDR's image allocations */ MmBootImageSize = KeLoaderBlock->Extension->LoaderPagesSpanned; Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ncache.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ncache.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/ncache.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -115,7 +115,7 @@ * @implemented */ VOID STDCALL MmFreeNonCachedMemory (IN PVOID BaseAddress, - IN ULONG NumberOfBytes) + IN SIZE_T NumberOfBytes) { MmLockAddressSpace(MmGetKernelAddressSpace()); MmFreeMemoryAreaByPtr(MmGetKernelAddressSpace(), Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/pool.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/pool.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/pool.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -50,7 +50,7 @@ * @implemented */ PVOID STDCALL -ExAllocatePool (POOL_TYPE PoolType, ULONG NumberOfBytes) +ExAllocatePool (POOL_TYPE PoolType, SIZE_T NumberOfBytes) /* * FUNCTION: Allocates pool memory of a specified type and returns a pointer * to the allocated block. This routine is used for general purpose allocation @@ -99,7 +99,7 @@ * @implemented */ PVOID STDCALL -ExAllocatePoolWithTag (POOL_TYPE PoolType, ULONG NumberOfBytes, ULONG Tag) +ExAllocatePoolWithTag (POOL_TYPE PoolType, SIZE_T NumberOfBytes, ULONG Tag) { PVOID Block; @@ -127,7 +127,7 @@ * @implemented */ PVOID STDCALL -ExAllocatePoolWithQuota (POOL_TYPE PoolType, ULONG NumberOfBytes) +ExAllocatePoolWithQuota (POOL_TYPE PoolType, SIZE_T NumberOfBytes) { return(ExAllocatePoolWithQuotaTag(PoolType, NumberOfBytes, TAG_NONE)); } @@ -180,7 +180,7 @@ PVOID NTAPI ExAllocatePoolWithQuotaTag (IN POOL_TYPE PoolType, - IN ULONG NumberOfBytes, + IN SIZE_T NumberOfBytes, IN ULONG Tag) { PEPROCESS Process; Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/procsup.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/procsup.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/procsup.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -384,7 +384,7 @@ ImageConfigData = RtlImageDirectoryEntryToData(Peb->ImageBaseAddress, TRUE, IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG, - &ViewSize); + (PULONG)&ViewSize); ProbeForRead(ImageConfigData, sizeof(IMAGE_LOAD_CONFIG_DIRECTORY), Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/region.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/region.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/region.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -238,7 +238,7 @@ VOID NTAPI -MmInitializeRegion(PLIST_ENTRY RegionListHead, ULONG Length, ULONG Type, +MmInitializeRegion(PLIST_ENTRY RegionListHead, SIZE_T Length, ULONG Type, ULONG Protect) { PMM_REGION Region; Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/rpoolmgr.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/rpoolmgr.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/rpoolmgr.h [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -12,7 +12,7 @@ typedef unsigned long rulong; -#define R_IS_POOL_PTR(pool,ptr) (void*)(ptr) >= pool->UserBase && (ULONG_PTR)(ptr) < ((ULONG_PTR)pool->UserBase + pool->UserSize) +#define R_IS_POOL_PTR(pool,ptr) (((void*)(ULONG_PTR)(ptr) >= pool->UserBase) && ((ULONG_PTR)(ptr) < ((ULONG_PTR)pool->UserBase + pool->UserSize))) #define R_ASSERT_PTR(pool,ptr) ASSERT( R_IS_POOL_PTR(pool,ptr) ) #define R_ASSERT_SIZE(pool,sz) ASSERT( sz > (sizeof(R_USED)+2*R_RZ) && sz >= sizeof(R_FREE) && sz < pool->UserSize ) @@ -712,7 +712,7 @@ if ( R_IS_POOL_PTR(pool,NumberOfBytes) ) { R_DEBUG("red zone verification requested for block 0x%X\n", NumberOfBytes ); - RUsedRedZoneCheck(pool,RBodyToHdr((void*)NumberOfBytes), (char*)NumberOfBytes, __FILE__, __LINE__ ); + RUsedRedZoneCheck(pool,RBodyToHdr((void*)(ULONG_PTR)NumberOfBytes), (char*)(ULONG_PTR)NumberOfBytes, __FILE__, __LINE__ ); R_RELEASE_MUTEX(pool); return NULL; } Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/section.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/section.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -2382,6 +2382,7 @@ LARGE_INTEGER Offset; CHAR Buffer; FILE_STANDARD_INFORMATION FileInfo; + ULONG Length; /* * Create the section @@ -2444,7 +2445,8 @@ FileStandardInformation, sizeof(FILE_STANDARD_INFORMATION), &FileInfo, - &Iosb.Information); + &Length); + Iosb.Information = Length; if (!NT_SUCCESS(Status)) { ObDereferenceObject(Section); @@ -4188,8 +4190,8 @@ NtQuerySection(IN HANDLE SectionHandle, IN SECTION_INFORMATION_CLASS SectionInformationClass, OUT PVOID SectionInformation, - IN ULONG SectionInformationLength, - OUT PULONG ResultLength OPTIONAL) + IN SIZE_T SectionInformationLength, + OUT PSIZE_T ResultLength OPTIONAL) { PROS_SECTION_OBJECT Section; KPROCESSOR_MODE PreviousMode; @@ -4740,7 +4742,7 @@ NTSTATUS STDCALL MmMapViewInSystemSpace (IN PVOID SectionObject, OUT PVOID * MappedBase, - IN OUT PULONG ViewSize) + IN OUT PSIZE_T ViewSize) { PROS_SECTION_OBJECT Section; PMM_AVL_TABLE AddressSpace; Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/sysldr.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/sysldr.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/sysldr.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -647,7 +647,7 @@ ForwardName->Hint = 0; /* Set the new address */ - *(PULONG)&ForwardThunk.u1.AddressOfData = (ULONG)ForwardName; + ForwardThunk.u1.AddressOfData = (ULONG_PTR)ForwardName; /* Snap the forwarder */ Status = MiSnapThunk(LdrEntry->DllBase, @@ -1289,7 +1289,7 @@ LdrEntry = CONTAINING_RECORD(NextEntry, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks); - PsNtosImageBase = (ULONG)LdrEntry->DllBase; + PsNtosImageBase = (ULONG_PTR)LdrEntry->DllBase; /* Loop the loader block */ while (NextEntry != ListHead) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/virtual.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/virtual.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/virtual.c [iso-8859-1] Tue Jul 29 19:25:15 2008 @@ -678,8 +678,8 @@ NtReadVirtualMemory(IN HANDLE ProcessHandle, IN PVOID BaseAddress, OUT PVOID Buffer, - IN ULONG NumberOfBytesToRead, - OUT PULONG NumberOfBytesRead OPTIONAL) + IN SIZE_T NumberOfBytesToRead, + OUT PSIZE_T NumberOfBytesRead OPTIONAL) { KPROCESSOR_MODE PreviousMode = ExGetPreviousMode(); PEPROCESS Process; @@ -765,8 +765,8 @@ NtWriteVirtualMemory(IN HANDLE ProcessHandle, IN PVOID BaseAddress, IN PVOID Buffer, - IN ULONG NumberOfBytesToWrite, - OUT PULONG NumberOfBytesWritten OPTIONAL) + IN SIZE_T NumberOfBytesToWrite, + OUT PSIZE_T NumberOfBytesWritten OPTIONAL) { KPROCESSOR_MODE PreviousMode = ExGetPreviousMode(); PEPROCESS Process; @@ -950,8 +950,8 @@ IN PVOID Address, IN MEMORY_INFORMATION_CLASS VirtualMemoryInformationClass, OUT PVOID VirtualMemoryInformation, - IN ULONG Length, - OUT PULONG UnsafeResultLength) + IN SIZE_T Length, + OUT PSIZE_T UnsafeResultLength) { NTSTATUS Status = STATUS_SUCCESS; ULONG ResultLength = 0; @@ -1062,8 +1062,8 @@ NTAPI NtUnlockVirtualMemory(IN HANDLE ProcessHandle, IN PVOID BaseAddress, - IN ULONG NumberOfBytesToUnlock, - OUT PULONG NumberOfBytesUnlocked OPTIONAL) + IN SIZE_T NumberOfBytesToUnlock, + OUT PSIZE_T NumberOfBytesUnlocked OPTIONAL) { UNIMPLEMENTED; if (NumberOfBytesUnlocked) *NumberOfBytesUnlocked = 0;
16 years, 4 months
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
77
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Results per page:
10
25
50
100
200