diff options
author | Sebastian Andrzej Siewior <bigeasy@breakpoint.cc> | 2009-07-26 12:58:34 (GMT) |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-07-27 10:37:28 (GMT) |
commit | 251ab1a37d9ba810593d5fbf2482bc4ba773fab2 (patch) | |
tree | 93eeb758d45df736601e5082c0c93a51f600d08a | |
parent | 505d62d073b528859b43bfb463a6ceaf3581469e (diff) | |
download | linux-251ab1a37d9ba810593d5fbf2482bc4ba773fab2.tar.xz |
avr32/lib: fix unaligned memcpy where len < 4
in case of memcpy(p, unaligned, 1..3) we get 1..3 as the
return value instead of p
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
-rw-r--r-- | arch/avr32/lib/memcpy.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/avr32/lib/memcpy.S b/arch/avr32/lib/memcpy.S index 93e74b6..c2ca49d 100644 --- a/arch/avr32/lib/memcpy.S +++ b/arch/avr32/lib/memcpy.S @@ -49,6 +49,7 @@ memcpy: /* Handle unaligned "from" pointer */ 1: sub r10, 4 + movlt r9, r12 brlt 4b add r10, r9 lsl r9, 2 |