4 modified files
reactos/ntoskrnl/ldr
diff -u -r1.147 -r1.148
--- loader.c 4 Oct 2004 17:27:13 -0000 1.147
+++ loader.c 9 Oct 2004 12:17:53 -0000 1.148
@@ -1,4 +1,4 @@
-/* $Id: loader.c,v 1.147 2004/10/04 17:27:13 hbirr Exp $
+/* $Id: loader.c,v 1.148 2004/10/09 12:17:53 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -776,7 +776,8 @@
DPRINT("DriverSize %x, SizeOfImage %x\n",DriverSize, PENtHeaders->OptionalHeader.SizeOfImage);
/* Allocate a virtual section for the module */
- DriverBase = MmAllocateSection(DriverSize);
+ DriverBase = NULL;
+ DriverBase = MmAllocateSection(DriverSize, DriverBase);
if (DriverBase == 0)
{
CPRINT("Failed to allocate a virtual section for driver\n");
reactos/ntoskrnl/mm
diff -u -r1.50 -r1.51
--- pagefile.c 15 Aug 2004 16:39:08 -0000 1.50
+++ pagefile.c 9 Oct 2004 12:17:53 -0000 1.51
@@ -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: pagefile.c,v 1.50 2004/08/15 16:39:08 chorns Exp $
+/* $Id: pagefile.c,v 1.51 2004/10/09 12:17:53 gvg Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/pagefile.c
@@ -314,7 +314,7 @@
*/
if (MmCoreDumpType != MM_CORE_DUMP_TYPE_NONE)
{
- MmCoreDumpPageFrame = MmAllocateSection(PAGE_SIZE);
+ MmCoreDumpPageFrame = MmAllocateSection(PAGE_SIZE, NULL);
if (MmCoreDumpType == MM_CORE_DUMP_TYPE_FULL)
{
MmCoreDumpSize = MmStats.NrTotalPages * 4096 + 1024 * 1024;
reactos/ntoskrnl/mm
diff -u -r1.164 -r1.165
--- section.c 1 Oct 2004 20:06:43 -0000 1.164
+++ section.c 9 Oct 2004 12:17:54 -0000 1.165
@@ -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: section.c,v 1.164 2004/10/01 20:06:43 gvg Exp $
+/* $Id: section.c,v 1.165 2004/10/09 12:17:54 gvg Exp $
*
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c
@@ -3636,7 +3636,7 @@
* REVISIONS
*/
PVOID STDCALL
-MmAllocateSection (IN ULONG Length)
+MmAllocateSection (IN ULONG Length, PVOID BaseAddress)
{
PVOID Result;
MEMORY_AREA* marea;
@@ -3650,7 +3650,7 @@
BoundaryAddressMultiple.QuadPart = 0;
AddressSpace = MmGetKernelAddressSpace();
- Result = NULL;
+ Result = BaseAddress;
MmLockAddressSpace(AddressSpace);
Status = MmCreateMemoryArea (NULL,
AddressSpace,
reactos/ntoskrnl/include/internal
diff -u -r1.91 -r1.92
--- mm.h 3 Oct 2004 03:03:54 -0000 1.91
+++ mm.h 9 Oct 2004 12:17:54 -0000 1.92
@@ -717,7 +717,7 @@
/* section.c *****************************************************************/
PVOID STDCALL
-MmAllocateSection (IN ULONG Length);
+MmAllocateSection (IN ULONG Length, PVOID BaseAddress);
NTSTATUS STDCALL
MmQuerySectionView(PMEMORY_AREA MemoryArea,
CVSspam 0.2.8