Remove the static heap. It is unknown why it was needed in the

beginning, but it no longer is required.  This has been tested with
many different revisions of the PXE rom from Intel.
This commit is contained in:
ps 2000-05-05 07:24:03 +00:00
parent 3df9ad78d9
commit 83d88d499a

View File

@ -70,11 +70,6 @@ extern char bootprog_name[], bootprog_rev[], bootprog_date[], bootprog_maker[];
/* XXX debugging */
extern char end[];
/* XXX - I dont know why we have to do this, but it helps. */
#if defined(LOADER_NFS_SUPPORT) || defined(LOADER_TFTP_SUPPORT)
char Heap[200*1024];
#endif
void
main(void)
{
@ -91,12 +86,7 @@ main(void)
*/
bios_getmem();
/* XXX - I dont know why we have to do this, but it helps PXE. */
#if defined(LOADER_NFS_SUPPORT) || defined(LOADER_TFTP_SUPPORT)
setheap(Heap, Heap+sizeof(Heap));
#else
setheap((void *)end, (void *)bios_basemem);
#endif
/*
* XXX Chicken-and-egg problem; we want to have console output early, but some