--- zzzz-none-000/linux-3.10.107/arch/arm/lib/memcpy.S 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/arm/lib/memcpy.S 2021-02-04 17:41:59.000000000 +0000 @@ -12,6 +12,7 @@ #include #include +#include #define LDR1W_SHIFT 0 #define STR1W_SHIFT 0 @@ -48,6 +49,10 @@ stmdb sp!, {r0, \reg1, \reg2} .endm + .macro usave reg1 reg2 + UNWIND( .save {r0, \reg1, \reg2} ) + .endm + .macro exit reg1 reg2 ldmfd sp!, {r0, \reg1, \reg2} .endm @@ -55,9 +60,13 @@ .text /* Prototype: void *memcpy(void *dest, const void *src, size_t n); */ - +ENTRY(mmiocpy) +.weak memcpy +ENTRY(__memcpy) ENTRY(memcpy) #include "copy_template.S" ENDPROC(memcpy) +ENDPROC(mmiocpy) +ENDPROC(__memcpy)