diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-10-05 00:08:42 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-10-05 00:08:42 +0000 |
commit | f0030c0d54c3c27fe0b177a1cfdb59a090c599f7 (patch) | |
tree | fd0f0d1acf2deb8566fe3523aa1a0066b02143a2 /sys/arch | |
parent | 336aa88c94f8c10484b22ec84f1178d0dc52e8c3 (diff) |
Avoid odd aligned 16-bit entities for mips sake
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amiga/isa/if_isaed.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/amiga/isa/if_isaed.c b/sys/arch/amiga/isa/if_isaed.c index f29bbc7c7c6..ab7c1149f0e 100644 --- a/sys/arch/amiga/isa/if_isaed.c +++ b/sys/arch/amiga/isa/if_isaed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_isaed.c,v 1.11 1996/10/04 15:07:41 niklas Exp $ */ +/* $OpenBSD: if_isaed.c,v 1.12 1996/10/05 00:08:41 niklas Exp $ */ /* * Derived from sys/dev/isa/if_ed.c: @@ -2788,8 +2788,10 @@ ed_shared_writemem(sc, from, card, len) card += 2; len -= 2; } - if (len == 1) - bus_mem_write_2(bc, memh, card, (u_int16_t)*from); + if (len == 1) { + word = *from; + bus_mem_write_2(bc, memh, card, word); + } } else { while (len--) bus_mem_write_1(bc, memh, card++, *from++); |