diff options
author | kato <kato@FreeBSD.org> | 2000-04-12 11:17:08 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 2000-04-12 11:17:08 +0000 |
commit | da90280d536fb7861783a8505ad5267572bf224c (patch) | |
tree | 1379d08ff91dfd1c81dfd225bf21ced2971551c9 | |
parent | 0875731adbb850a030b3ece2c3b7ef9da01be535 (diff) | |
download | FreeBSD-src-da90280d536fb7861783a8505ad5267572bf224c.zip FreeBSD-src-da90280d536fb7861783a8505ad5267572bf224c.tar.gz |
Merged from sys/boot/i386/loader/main.c rev 1.19.
-rw-r--r-- | sys/boot/pc98/loader/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/boot/pc98/loader/main.c b/sys/boot/pc98/loader/main.c index 3e18ef1..3b58cf5 100644 --- a/sys/boot/pc98/loader/main.c +++ b/sys/boot/pc98/loader/main.c @@ -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 |