From 5e2a095c0304b38d840e91c70472fa062773b212 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 14 Jun 2008 18:29:53 +0000 Subject: Mask the upper 56 bits of the rx ports when reading them, pckbd_input() will rely on this very soon. --- sys/arch/sgi/dev/mkbc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3