From 2ef7c3ccfc088069a793ba52967ca1c6e6da0e84 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 14 Mar 2008 17:04:49 +0000 Subject: Don't even try to attach pcons(4) if we have a real console. --- sys/arch/sparc64/sparc64/autoconf.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index cd6362dc8fe..06f8542148c 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.80 2008/03/13 23:03:02 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.81 2008/03/14 17:04:48 kettenis Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -839,10 +839,15 @@ extern bus_space_tag_t mainbus_space_tag; if (ma.ma_naddress) free(ma.ma_address, M_DEVBUF); } - /* Try to attach PROM console */ - bzero(&ma, sizeof ma); - ma.ma_name = "pcons"; - config_found(dev, &ma, mbprint); + + extern int prom_cngetc(dev_t); + + /* Attach PROM console if no other console attached. */ + if (cn_tab->cn_getc == prom_cngetc) { + bzero(&ma, sizeof ma); + ma.ma_name = "pcons"; + config_found(dev, &ma, mbprint); + } extern todr_chip_handle_t todr_handle; -- cgit v1.2.3