diff options
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; |