diff options
-rw-r--r-- | sys/arch/amiga/isa/if_isaed.c | 8 | ||||
-rw-r--r-- | sys/dev/isa/if_ed.c | 8 |
2 files changed, 10 insertions, 6 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++); diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c index 20e53840f00..08bb23b9165 100644 --- a/sys/dev/isa/if_ed.c +++ b/sys/dev/isa/if_ed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ed.c,v 1.19 1996/09/26 21:07:16 niklas Exp $ */ +/* $OpenBSD: if_ed.c,v 1.20 1996/10/05 00:08:39 niklas Exp $ */ /* $NetBSD: if_ed.c,v 1.100 1996/05/12 23:52:19 mycroft Exp $ */ /* @@ -2778,8 +2778,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++); |