diff options
author | Sebastian Andrzej Siewior <bigeasy@breakpoint.cc> | 2009-07-26 08:58:34 -0400 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2009-07-27 06:37:28 -0400 |
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: | |||
49 | 49 | ||
50 | /* Handle unaligned "from" pointer */ | 50 | /* Handle unaligned "from" pointer */ |
51 | 1: sub r10, 4 | 51 | 1: sub r10, 4 |
52 | movlt r9, r12 | ||
52 | brlt 4b | 53 | brlt 4b |
53 | add r10, r9 | 54 | add r10, r9 |
54 | lsl r9, 2 | 55 | lsl r9, 2 |