Use bus_space_write_2() to write the 16 bit register "EMU_TIMER" which

should fix PR kern/15663. Patch supplied by Yorick Hardy via GNATS.
This commit is contained in:
tron 2003-01-01 00:36:29 +00:00
parent 41a403fb33
commit ed7e94b443
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: emuxki.c,v 1.13 2002/12/24 10:53:03 jdolecek Exp $ */
/* $NetBSD: emuxki.c,v 1.14 2003/01/01 00:36:29 tron Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.13 2002/12/24 10:53:03 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.14 2003/01/01 00:36:29 tron Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -1457,7 +1457,7 @@ emuxki_resched_timer(struct emuxki_softc *sc)
if (timerate & ~EMU_TIMER_RATE_MASK)
timerate = 0;
bus_space_write_4(sc->sc_iot, sc->sc_ioh, EMU_TIMER, timerate);
bus_space_write_2(sc->sc_iot, sc->sc_ioh, EMU_TIMER, timerate);
if (!active && (sc->timerstate & EMU_TIMER_STATE_ENABLED)) {
bus_space_write_4(sc->sc_iot, sc->sc_ioh, EMU_INTE,
bus_space_read_4(sc->sc_iot, sc->sc_ioh, EMU_INTE) &