Skip to content

Commit

Permalink
avr32: Fix wrong I/O access size in __raw_readsb
Browse files Browse the repository at this point in the history
__raw_readsb() should always use byte accesses, never halfword accesses,
to I/O memory.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
  • Loading branch information
Haavard Skinnemoen committed Jun 27, 2008
1 parent 7c1b90a commit c1f24ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/avr32/lib/io-readsb.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ __raw_readsb:
2: sub r10, -4
reteq r12

3: ld.uh r8, r12[0]
3: ld.ub r8, r12[0]
sub r10, 1
st.b r11++, r8
brne 3b
Expand Down

0 comments on commit c1f24ac

Please sign in to comment.