From 5bb2204e463a6279e84af26a9fb2a4043b6ada32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 12 Oct 2008 18:07:47 +0000 Subject: [PATCH] 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 --- src/system/libroot/posix/string/arch/m68k/arch_string.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/libroot/posix/string/arch/m68k/arch_string.S b/src/system/libroot/posix/string/arch/m68k/arch_string.S index 7c04a42bc3..ebb6c661c5 100644 --- a/src/system/libroot/posix/string/arch/m68k/arch_string.S +++ b/src/system/libroot/posix/string/arch/m68k/arch_string.S @@ -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