diff options
author | 2006-09-16 10:42:23 +0000 | |
---|---|---|
committer | 2006-09-16 10:42:23 +0000 | |
commit | ef91af475cc358ee29735dca57e4ac87187321bb (patch) | |
tree | 80a7501cf1918f42e168325ff8779f5d0f1fab30 | |
parent | Bring pgt(4) in a working state. Much work also done by claudio@. (diff) | |
download | wireguard-openbsd-ef91af475cc358ee29735dca57e4ac87187321bb.tar.xz wireguard-openbsd-ef91af475cc358ee29735dca57e4ac87187321bb.zip |
Do not use bus_space_write_multi and happily write to NULL and die, when
bus_space_set_region was intended. ok deraadt@
-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); |