summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-05 00:08:42 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-05 00:08:42 +0000
commitf0030c0d54c3c27fe0b177a1cfdb59a090c599f7 (patch)
treefd0f0d1acf2deb8566fe3523aa1a0066b02143a2 /sys/dev
parent336aa88c94f8c10484b22ec84f1178d0dc52e8c3 (diff)
Avoid odd aligned 16-bit entities for mips sake
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/if_ed.c8
1 files changed, 5 insertions, 3 deletions
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++);