diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-06-09 08:16:06 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-06-27 09:07:50 -0400 |
commit | c1f24ac99f3711a6caa0e1d1c01a071ed72a7e0b (patch) | |
tree | 29e4e17ba804acdb9b6739afe62ca50df309fb83 /arch/avr32 | |
parent | 7c1b90a1e964f72bde88511e5cfe1c04318ff3d1 (diff) |
avr32: Fix wrong I/O access size in __raw_readsb
__raw_readsb() should always use byte accesses, never halfword accesses,
to I/O memory.
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r-- | arch/avr32/lib/io-readsb.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/lib/io-readsb.S b/arch/avr32/lib/io-readsb.S index 2be5da7ed26b..cb2d86945559 100644 --- a/arch/avr32/lib/io-readsb.S +++ b/arch/avr32/lib/io-readsb.S | |||
@@ -41,7 +41,7 @@ __raw_readsb: | |||
41 | 2: sub r10, -4 | 41 | 2: sub r10, -4 |
42 | reteq r12 | 42 | reteq r12 |
43 | 43 | ||
44 | 3: ld.uh r8, r12[0] | 44 | 3: ld.ub r8, r12[0] |
45 | sub r10, 1 | 45 | sub r10, 1 |
46 | st.b r11++, r8 | 46 | st.b r11++, r8 |
47 | brne 3b | 47 | brne 3b |