summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-06-14 18:29:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-06-14 18:29:53 +0000
commit5e2a095c0304b38d840e91c70472fa062773b212 (patch)
tree5a032eba157c56a235c878fdaf063bfcfd5db476 /sys
parentb2f22c2212661a38d9f016dcb213fbea89dc544c (diff)
Mask the upper 56 bits of the rx ports when reading them, pckbd_input() will
rely on this very soon.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/dev/mkbc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgi/dev/mkbc.c b/sys/arch/sgi/dev/mkbc.c
index a28f57995c4..249a8fba3a2 100644
--- a/sys/arch/sgi/dev/mkbc.c
+++ b/sys/arch/sgi/dev/mkbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkbc.c,v 1.6 2008/02/21 13:30:04 jsing Exp $ */
+/* $OpenBSD: mkbc.c,v 1.7 2008/06/14 18:29:52 miod Exp $ */
/*
* Copyright (c) 2006, 2007, Joel Sing
@@ -348,7 +348,7 @@ mkbcintr_internal(struct pckbc_internal *t, struct pckbc_softc *sc)
break; /* pckbc_poll_data() will get it */
KBD_DELAY;
- data = bus_space_read_8(t->t_iot, q->ioh, MKBC_RX_PORT);
+ data = bus_space_read_8(t->t_iot, q->ioh, MKBC_RX_PORT) & 0xff;
if (CMD_IN_QUEUE(q) && mkbc_cmdresponse(t, slot, data))
continue;
@@ -380,7 +380,7 @@ mkbcintr_internal(struct pckbc_internal *t, struct pckbc_softc *sc)
break; /* pckbc_poll_data() will get it. */
KBD_DELAY;
- data = bus_space_read_8(t->t_iot, q->ioh, MKBC_RX_PORT);
+ data = bus_space_read_8(t->t_iot, q->ioh, MKBC_RX_PORT) & 0xff;
if (CMD_IN_QUEUE(q) && mkbc_cmdresponse(t, slot, data))
continue;