criu/compel/arch/mips/plugins/std/memcpy.S
Guoyun Sun ba0d6dbac1 mips:compel/arch/mips: Add architecture support to compel tool and libraries
This patch only adds the support but does not enable it for building.

Signed-off-by: Guoyun Sun <sunguoyun@loongson.cn>
2020-10-20 00:18:24 -07:00

23 lines
275 B
ArmAsm
Executable file

#include "common/asm/linkage.h"
.section .head.text, "ax"
ENTRY(memcpy)
.set noreorder
dadd v0,zero,a0
daddiu t1,zero,0
loop:
beq t1,a2,exit
nop
lb t2,0(a1)
sb t2,0(a0)
daddiu t1,t1,1
daddiu a0,a0,1
daddiu a1,a1,1
j loop
nop
exit:
jr ra
nop
END(memcpy)