Merged from sys/boot/i386/loader/main.c rev 1.19.

This commit is contained in:
KATO Takenori 2000-04-12 11:17:08 +00:00
parent b9efeafc84
commit 117a0be4e9

View File

@ -70,6 +70,11 @@ 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)
{
@ -85,7 +90,13 @@ main(void)
* Initialise the heap as early as possible. Once this is done, malloc() is usable.
*/
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