From ece132020b3a7bdb99e98da0de9fe997fe5fe7f0 Mon Sep 17 00:00:00 2001 From: Naresh Babu Saladi Date: Wed, 19 Aug 2009 11:56:47 -0700 Subject: memcpy: change pre-load instruction to use source address register In case of 32-bit aligned memcpy, pre-load the contents of source. Currently, pre-load instruction uses register r12, which doesn't point to source address and thus effectively a no-op in the code. --- libc/arch-arm/bionic/memcpy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/arch-arm/bionic/memcpy.S b/libc/arch-arm/bionic/memcpy.S index 1e8f5f6..215d76e 100644 --- a/libc/arch-arm/bionic/memcpy.S +++ b/libc/arch-arm/bionic/memcpy.S @@ -141,7 +141,7 @@ cached_aligned32: */ 1: ldmia r1!, { r4-r11 } - PLD [r12, #32] + PLD [r1, #32] subs r2, r2, #32 stmia r0!, { r4-r11 } -- cgit v1.1