From 73a6de7e91969cee2ba7295af1ac319be602c398 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 18 May 2008 07:36:11 +0000 Subject: Unbreak glass console on OpenBSD/sgi - if we're supposed to be using the glass console set comconsaddr to zero so we don't switch to serial when com* attach. spotted by jasper@, ok miod@ --- sys/arch/sgi/localbus/com_lbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi/localbus') diff --git a/sys/arch/sgi/localbus/com_lbus.c b/sys/arch/sgi/localbus/com_lbus.c index 825fa71c667..0d0b19364c9 100644 --- a/sys/arch/sgi/localbus/com_lbus.c +++ b/sys/arch/sgi/localbus/com_lbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_lbus.c,v 1.7 2008/05/01 13:36:09 miod Exp $ */ +/* $OpenBSD: com_lbus.c,v 1.8 2008/05/18 07:36:10 jsing Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -84,10 +84,10 @@ com_macebus_attach(struct device *parent, struct device *self, void *aux) /* If it's in use as the console, then it's there. */ if (ca->ca_baseaddr == comconsaddr && !comconsattached) { - sc->sc_ioh = comconsioh; if (comcnattach(sc->sc_iot, sc->sc_iobase, TTYDEF_SPEED, sc->sc_frequency, (TTYDEF_CFLAG & ~(CSIZE | PARENB)) | CS8)) panic("failed to setup serial console!"); + sc->sc_ioh = comconsioh; } else { if (bus_space_map(sc->sc_iot, ca->ca_baseaddr, COM_NPORTS, 0, &sc->sc_ioh)) { -- cgit v1.2.3