Commit 9fa4d536 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

[ARM PATCH] 1735/1: correct memcpy return value on ARM

Patch from Nicolas Pitre
parent fc1a59c5
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
#define ENTER \ #define ENTER \
mov ip,sp ;\ mov ip,sp ;\
stmfd sp!,{r4-r9,fp,ip,lr,pc} ;\ stmfd sp!,{r0,r4-r9,fp,ip,lr,pc} ;\
sub fp,ip,#4 sub fp,ip,#4
#define EXIT \ #define EXIT \
LOADREGS(ea, fp, {r4 - r9, fp, sp, pc}) LOADREGS(ea, fp, {r0, r4 - r9, fp, sp, pc})
#define EXITEQ \ #define EXITEQ \
LOADREGS(eqea, fp, {r4 - r9, fp, sp, pc}) LOADREGS(eqea, fp, {r0, r4 - r9, fp, sp, pc})
/* /*
* Prototype: void memcpy(void *to,const void *from,unsigned long n); * Prototype: void memcpy(void *to,const void *from,unsigned long n);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment