summaryrefslogtreecommitdiffstats
path: root/sys/arch/hp300/dev/gbox.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-12-30 18:03:33 +0000
committermiod <miod@openbsd.org>2005-12-30 18:03:33 +0000
commit9792cac2257ea33eb12d8b922c8597464d3e4d22 (patch)
treed67d3c22d12c6ea329d6f3883041e14a0febf1b7 /sys/arch/hp300/dev/gbox.c
parentIntroduce symbolic constants for the magic conscode values. (diff)
downloadwireguard-openbsd-9792cac2257ea33eb12d8b922c8597464d3e4d22.tar.xz
wireguard-openbsd-9792cac2257ea33eb12d8b922c8597464d3e4d22.zip
When a driver claims console, let it set conscode to itself, instead of
letting the bus walkers do this for it. This is necessary since apci does not use the bus walkers, now that we do not force console probes to stop when apci claims console.
Diffstat (limited to 'sys/arch/hp300/dev/gbox.c')
-rw-r--r--sys/arch/hp300/dev/gbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hp300/dev/gbox.c b/sys/arch/hp300/dev/gbox.c
index 133acdeffa0..fcb0a634271 100644
--- a/sys/arch/hp300/dev/gbox.c
+++ b/sys/arch/hp300/dev/gbox.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gbox.c,v 1.10 2005/12/30 18:00:20 miod Exp $ */
+/* $OpenBSD: gbox.c,v 1.11 2005/12/30 18:03:33 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
@@ -475,6 +475,7 @@ gbox_console_scan(int scode, caddr_t va, void *arg)
*/
if (((cn_tab == NULL) || (cp->cn_pri > cn_tab->cn_pri)) || force) {
cn_tab = cp;
+ conscode = scode;
return (DIO_SIZE(scode, va));
}
return (0);