aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/pc98/loader
diff options
context:
space:
mode:
authorKATO Takenori <kato@FreeBSD.org>2000-04-12 11:17:08 +0000
committerKATO Takenori <kato@FreeBSD.org>2000-04-12 11:17:08 +0000
commit117a0be4e919b0bec1cd9a2639a2cc91877a91b8 (patch)
tree30b6ec44a8ea31fdcb2fc7caf6d4357ea72251f2 /sys/boot/pc98/loader
parentb9efeafc84936a47a10a496ad8aeeb02b79f1c15 (diff)
Notes
Diffstat (limited to 'sys/boot/pc98/loader')
-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 3e18ef16c9e1..3b58cf5d8c5f 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