From e345820c8eedf8ab9552c58225c651dc5e663eb6 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 5 Oct 2004 10:40:13 +0000 Subject: [PATCH] Remove fixed heap base address (HEAP_BASE) to enable bottom-up heap allocation. svn path=/trunk/; revision=11197 --- reactos/include/ntdll/rtl.h | 4 +--- reactos/lib/ntdll/ldr/startup.c | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/reactos/include/ntdll/rtl.h b/reactos/include/ntdll/rtl.h index ec760a2f8ec..5699d3c7d96 100644 --- a/reactos/include/ntdll/rtl.h +++ b/reactos/include/ntdll/rtl.h @@ -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 */ diff --git a/reactos/lib/ntdll/ldr/startup.c b/reactos/lib/ntdll/ldr/startup.c index 6e1f4addeac..8b65c088b54 100644 --- a/reactos/lib/ntdll/ldr/startup.c +++ b/reactos/lib/ntdll/ldr/startup.c @@ -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, -- 2.17.1