diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-09-16 10:42:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-09-16 10:42:24 +0000 |
commit | 6cd150bc8594fceadd0998082cc4f68e79637f89 (patch) | |
tree | 5b92f6b67cce869cf0cc9e9f548d72909a484806 /sys/arch/mac68k/dev | |
parent | 962235ae186f8a360bf20915335e757bf4b37071 (diff) |
Do not use bus_space_write_multi and happily write to NULL and die, when
bus_space_set_region was intended. ok deraadt@
Diffstat (limited to 'sys/arch/mac68k/dev')
-rw-r--r-- | sys/arch/mac68k/dev/asc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/asc.c b/sys/arch/mac68k/dev/asc.c index 02633582edd..8c6faccb7a3 100644 --- a/sys/arch/mac68k/dev/asc.c +++ b/sys/arch/mac68k/dev/asc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asc.c,v 1.24 2006/04/14 09:36:49 martin Exp $ */ +/* $OpenBSD: asc.c,v 1.25 2006/09/16 10:42:23 miod Exp $ */ /* $NetBSD: asc.c,v 1.20 1997/02/24 05:47:33 scottr Exp $ */ /* @@ -307,8 +307,7 @@ asc_ring_bell(arg, freq, length, volume) return (ENODEV); if (sc->sc_ringing == 0) { - - bus_space_write_multi_1(sc->sc_tag, sc->sc_handle, + bus_space_set_region_1(sc->sc_tag, sc->sc_handle, 0, 0, 0x800); bus_space_write_region_1(sc->sc_tag, sc->sc_handle, 0, asc_wave_tab, 0x800); |