Enable and fix the asm memcpy(). It's far from optimized, but works now and fixes the build.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27998 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-10-12 18:07:47 +00:00
parent 372087dde5
commit 5bb2204e46
@@ -4,7 +4,7 @@
*/
#warning M68K: optimize memcpy
#if 0
#if 1
#define FUNCTION(x) .global x; .type x,@function; x
/* that should be enough for now */
@@ -15,11 +15,11 @@ FUNCTION(memcpy):
move.l (4,%a7),%a1
move.l (8,%a7),%a0
move.l (12,%a7),%d0
_memcpy_loop:
addi.l #-1,%d0
blt _memcpy_out
_memcpy_loop:
move.b (%a0)+,(%a1)+
dbf %d0,_memcpy_loop
bra _memcpy_loop
_memcpy_out:
move.l (4,%a7),%a0
move.l %a0,%d0