diff options
author | Sebastian Andrzej Siewior <bigeasy@breakpoint.cc> | 2009-07-26 14:58:34 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-07-27 12:37:28 +0200 |
commit | 251ab1a37d9ba810593d5fbf2482bc4ba773fab2 (patch) | |
tree | 93eeb758d45df736601e5082c0c93a51f600d08a /arch/avr32/lib | |
parent | 505d62d073b528859b43bfb463a6ceaf3581469e (diff) |
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>
Diffstat (limited to 'arch/avr32/lib')
-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 93e74b6fcdb6..c2ca49d705af 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 |