summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2000-04-12 11:17:08 +0000
committerkato <kato@FreeBSD.org>2000-04-12 11:17:08 +0000
commitda90280d536fb7861783a8505ad5267572bf224c (patch)
tree1379d08ff91dfd1c81dfd225bf21ced2971551c9 /sys
parent0875731adbb850a030b3ece2c3b7ef9da01be535 (diff)
downloadFreeBSD-src-da90280d536fb7861783a8505ad5267572bf224c.zip
FreeBSD-src-da90280d536fb7861783a8505ad5267572bf224c.tar.gz
Merged from sys/boot/i386/loader/main.c rev 1.19.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/pc98/loader/main.c11
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
OpenPOWER on IntegriCloud