summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/loader/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/pc98/loader/main.c')
-rw-r--r--sys/boot/pc98/loader/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/boot/pc98/loader/main.c b/sys/boot/pc98/loader/main.c
index 8b472c5..14354f3 100644
--- a/sys/boot/pc98/loader/main.c
+++ b/sys/boot/pc98/loader/main.c
@@ -98,12 +98,16 @@ main(void)
* We can use printf() etc. once this is done.
* If the previous boot stage has requested a serial console, prefer that.
*/
- if (initial_howto & RB_SERIAL)
+ if (initial_howto & RB_MULTIPLE) {
+ setenv("boot_multicons", "YES", 1);
+ if (initial_howto & RB_SERIAL)
+ setenv("console", "comconsole vidconsole", 1);
+ else
+ setenv("console", "vidconsole comconsole", 1);
+ } else if (initial_howto & RB_SERIAL)
setenv("console", "comconsole", 1);
- if (initial_howto & RB_MUTE)
+ else if (initial_howto & RB_MUTE)
setenv("console", "nullconsole", 1);
- if (initial_howto & RB_MULTIPLE)
- setenv("boot_multicons", "YES", 1);
cons_probe();
/*
OpenPOWER on IntegriCloud