diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-29 15:11:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-07-29 15:11:58 +0000 |
commit | c306d80b55610dbf438d85bdb93cb3e8cf120e8c (patch) | |
tree | bfa712a35c4c73cb3b018374721f3ab96948af7f /sys/arch/vax/vsa/lcg.c | |
parent | 20ec1696e0640c3e063f6ce869fe0cfa0c5c4587 (diff) |
At attach() time, do not simply trust the L3 switch to know if we are the
console, check for cn_tab pointing to wsdisplay as well.
Diffstat (limited to 'sys/arch/vax/vsa/lcg.c')
-rw-r--r-- | sys/arch/vax/vsa/lcg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/vax/vsa/lcg.c b/sys/arch/vax/vsa/lcg.c index 27e882b0ee5..68291e29c6c 100644 --- a/sys/arch/vax/vsa/lcg.c +++ b/sys/arch/vax/vsa/lcg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lcg.c,v 1.3 2006/07/29 14:18:57 miod Exp $ */ +/* $OpenBSD: lcg.c,v 1.4 2006/07/29 15:11:57 miod Exp $ */ /* * Copyright (c) 2006 Miodrag Vallat. * @@ -58,6 +58,8 @@ #include <uvm/uvm_extern.h> +#include <dev/cons.h> + #include <dev/wscons/wsconsio.h> #include <dev/wscons/wsdisplayvar.h> #include <dev/rasops/rasops.h> @@ -202,8 +204,9 @@ lcg_attach(struct device *parent, struct device *self, void *aux) struct wsemuldisplaydev_attach_args aa; vaddr_t tmp; int console; + extern struct consdev wsdisplay_cons; - console = (vax_confdata & 0x100) == 0; + console = (vax_confdata & 0x100) == 0 && cn_tab == &wsdisplay_cons; if (console) { ss = &lcg_consscr; sc->sc_nscreens = 1; |