Remove fixed heap base address (HEAP_BASE) to enable bottom-up heap allocation.
authorEric Kohl <eric.kohl@reactos.org>
Tue, 5 Oct 2004 10:40:13 +0000 (10:40 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 5 Oct 2004 10:40:13 +0000 (10:40 +0000)
svn path=/trunk/; revision=11197

reactos/include/ntdll/rtl.h
reactos/lib/ntdll/ldr/startup.c

index ec760a2..5699d3c 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: rtl.h,v 1.49 2004/10/04 21:38:48 ion Exp $
+/* $Id: rtl.h,v 1.50 2004/10/05 10:40:13 ekohl Exp $
  *
  */
 
@@ -173,8 +173,6 @@ typedef struct _RTL_HANDLE_TABLE
 } RTL_HANDLE_TABLE, *PRTL_HANDLE_TABLE;
 
 
-#define HEAP_BASE (0xA0000000)
-
 /* RtlQueryProcessDebugInformation */
 #define PDI_MODULES     0x01   /* The loaded modules of the process */
 #define PDI_BACKTRACE   0x02   /* The heap stack back traces */
index 6e1f4ad..8b65c08 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: startup.c,v 1.57 2004/01/07 10:09:03 hbirr Exp $
+/* $Id: startup.c,v 1.58 2004/10/05 10:38:57 ekohl Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -282,7 +282,7 @@ __true_LdrInitializeThunk (ULONG Unknown1,
        /* create process heap */
        RtlInitializeHeapManager();
        Peb->ProcessHeap = RtlCreateHeap(HEAP_GROWABLE,
-                                        (PVOID)HEAP_BASE,
+                                        NULL,
                                         NTHeaders->OptionalHeader.SizeOfHeapReserve,
                                         NTHeaders->OptionalHeader.SizeOfHeapCommit,
                                         NULL,