X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fcode940%2Fmemcpy.s;h=282762fd08d571b21b8dd3f9ac8683da6b28815c;hb=e4fb433cd685d06ddbf0ec367c19a38b75d6ac68;hp=bb4cdaabf255fea300f30e97e935e3dbc247853d;hpb=eaa9417a9b52389534f0dcbae6263781ea809ab2;p=picodrive.git diff --git a/platform/gp2x/code940/memcpy.s b/platform/gp2x/code940/memcpy.s index bb4cdaa..282762f 100644 --- a/platform/gp2x/code940/memcpy.s +++ b/platform/gp2x/code940/memcpy.s @@ -36,33 +36,23 @@ * POSSIBILITY OF SUCH DAMAGE. */ -/* This was modified by Jay Monkman to -* save and restore r12. This is necessary for RTEMS. -*/ /* #include */ -#define ENTRY(_LABEL) \ - .global _LABEL; _LABEL: - .globl memcpy +.globl _memcpy memcpy: -@ ENTRY(gp2x_memcpy) -stmfd sp!, {r0, r12, lr} -@ bl _gp2x_memcpy +stmfd sp!, {r0, lr} bl _memcpy -ldmfd sp!, {r0, r12, pc} - +ldmfd sp!, {r0, pc} .globl memmove memmove: -@ ENTRY(gp2x_memmove) -stmfd sp!, {r0, r12, lr} -@ bl _gp2x_memcpy +stmfd sp!, {r0, lr} bl _memcpy -ldmfd sp!, {r0, r12, pc} +ldmfd sp!, {r0, pc} @@ -101,7 +91,6 @@ ldmfd sp!, {r0, r12, pc} _memcpy: -@ ENTRY(_gp2x_memcpy) /* Determine copy direction */ cmp r1, r0 bcc Lmemcpy_backwards