Author: jimtabor Date: Mon Jul 13 09:00:17 2009 New Revision: 41939
URL: http://svn.reactos.org/svn/reactos?rev=41939&view=rev Log: - Half-implement MmPageEntireDriver and use it to set the module instance for win32k. ATM, it does not set the entry pageable. - I mean no disrespect to the Arm developers, I'm an admire of your great work with ReactOS! By my commits you can see the need for the offset address when calling internal procs in win32k. - References: MmPageEntireDriver, http://www.osronline.com/ddkx/kmarch/k106_7os2.htm
Modified: trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c trunk/reactos/subsystems/win32/win32k/main/dllmain.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c?... ============================================================================== --- trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/ARM3/drvmgmt.c [iso-8859-1] Mon Jul 13 09:00:17 2009 @@ -119,7 +119,8 @@ // // We should find the driver loader entry and return its base address // - UNIMPLEMENTED; + PLDR_DATA_TABLE_ENTRY pLdrDataTabEntry = MiLookupDataTableEntry(AddressWithinSection); + if (pLdrDataTabEntry) return pLdrDataTabEntry->DllBase; return NULL; }
Modified: trunk/reactos/subsystems/win32/win32k/main/dllmain.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/mai... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/main/dllmain.c [iso-8859-1] Mon Jul 13 09:00:17 2009 @@ -26,6 +26,8 @@
#define NDEBUG #include <debug.h> + +HANDLE hModuleWin;
PGDI_HANDLE_TABLE INTERNAL_CALL GDIOBJ_iAllocHandleTable(OUT PSECTION_OBJECT *SectionObject); BOOL INTERNAL_CALL GDI_CleanupForProcess (struct _EPROCESS *Process); @@ -387,6 +389,8 @@ return STATUS_UNSUCCESSFUL; }
+ hModuleWin = MmPageEntireDriver(DriverEntry); + /* * Register Object Manager Callbacks */