one more change

This commit is contained in:
Christopher Faylor 2002-08-07 01:22:56 +00:00
parent 772f6c3e12
commit 88de60e449
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* cygheap.cc (_csbrk): Avoid !cygheap considerations. * cygheap.cc (_csbrk): Avoid !cygheap considerations.
(cygheap_init): Deal with unintialized cygheap issues here. (cygheap_init): Deal with unintialized cygheap issues here.
(cheap_init): Move cygheap_max setting here.
2002-08-06 Christopher Faylor <cgf@redhat.com> 2002-08-06 Christopher Faylor <cgf@redhat.com>
Conrad Scott <conrad.scott@dsl.pipex.com Conrad Scott <conrad.scott@dsl.pipex.com

View File

@ -61,6 +61,7 @@ init_cheap ()
api_fatal ("AllocationBase %p, BaseAddress %p, RegionSize %p, State %p\n", api_fatal ("AllocationBase %p, BaseAddress %p, RegionSize %p, State %p\n",
m.AllocationBase, m.BaseAddress, m.RegionSize, m.State); m.AllocationBase, m.BaseAddress, m.RegionSize, m.State);
} }
cygheap_max = cygheap;
} }
static void dup_now (void *, child_info *, unsigned) __attribute__ ((regparm(3))); static void dup_now (void *, child_info *, unsigned) __attribute__ ((regparm(3)));
@ -189,7 +190,6 @@ cygheap_init ()
if (!cygheap) if (!cygheap)
{ {
init_cheap (); init_cheap ();
cygheap_max = cygheap;
(void) _csbrk (sizeof (*cygheap)); (void) _csbrk (sizeof (*cygheap));
} }
if (!cygheap->fdtab) if (!cygheap->fdtab)