From 3ad0b93804f35da684f390ca821137d22ec80fc6 Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Sun, 24 Oct 2004 12:15:07 +0000 Subject: [PATCH] MFi386: Set bi_basemem and bi_extmem variables. Respect RB_MULTIPLE flag. --- sys/boot/pc98/loader/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/boot/pc98/loader/main.c b/sys/boot/pc98/loader/main.c index 522908b36d0d..580570bc71b2 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 */