summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-10-01 22:44:27 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-10-01 22:44:27 +0000
commit96f645182fcd51d047da79cd08c9ba39083543b9 (patch)
tree5d50673fa16fb736def8b1a18a5f84404b5df178 /sys/arch
parentb1146fcb158045388fc3fa2ed8d842b571783d39 (diff)
When booting up in auto-boot? true mode, newer systems do not provide
the stdout connection for if the normal output mode is screen. This change will force the bootloader output to the screen if this condition occurs.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/stand/Locore.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/macppc/stand/Locore.c b/sys/arch/macppc/stand/Locore.c
index 16255a14ffd..30677a05b61 100644
--- a/sys/arch/macppc/stand/Locore.c
+++ b/sys/arch/macppc/stand/Locore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: Locore.c,v 1.2 2001/09/05 22:32:39 deraadt Exp $ */
+/* $OpenBSD: Locore.c,v 1.3 2001/10/01 22:44:26 drahn Exp $ */
/* $NetBSD: Locore.c,v 1.1 1997/04/16 20:29:11 thorpej Exp $ */
/*
@@ -571,6 +571,10 @@ setup()
|| OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)) !=
sizeof(stdout))
_rtt();
+ if (stdout == 0) {
+ /* screen should be console, but it is not open */
+ stdout = OF_open("screen");
+ }
}
void