summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2004-10-24 12:15:07 +0000
committernyan <nyan@FreeBSD.org>2004-10-24 12:15:07 +0000
commit39595f1f47c93a3a4fdb03119d8f01152891059d (patch)
treed3ca733401455c3a90f480e1098792b81a368868 /sys/boot
parent849321f886fb9dc44706a4db424c634191c633e6 (diff)
downloadFreeBSD-src-39595f1f47c93a3a4fdb03119d8f01152891059d.zip
FreeBSD-src-39595f1f47c93a3a4fdb03119d8f01152891059d.tar.gz
MFi386: Set bi_basemem and bi_extmem variables.
Respect RB_MULTIPLE flag.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/pc98/loader/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/boot/pc98/loader/main.c b/sys/boot/pc98/loader/main.c
index 522908b..580570b 100644
--- a/sys/boot/pc98/loader/main.c
+++ b/sys/boot/pc98/loader/main.c
@@ -102,6 +102,8 @@ main(void)
setenv("console", "comconsole", 1);
if (initial_howto & RB_MUTE)
setenv("console", "nullconsole", 1);
+ if (initial_howto & RB_MULTIPLE)
+ setenv("boot_multicons", "YES", 1);
cons_probe();
/*
@@ -130,6 +132,10 @@ main(void)
if (devsw[i]->dv_init != NULL)
(devsw[i]->dv_init)();
printf("BIOS %dkB/%dkB available memory\n", bios_basemem / 1024, bios_extmem / 1024);
+ if (initial_bootinfo != NULL) {
+ initial_bootinfo->bi_basemem = bios_basemem / 1024;
+ initial_bootinfo->bi_extmem = bios_extmem / 1024;
+ }
#ifndef PC98
/* detect ACPI for future reference */
OpenPOWER on IntegriCloud