ax-cpu 0.5.5

Privileged instruction and structure abstractions for various CPU architectures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.section .text
.global user_copy
user_copy:
	beqz	$a2, 3f

1:	ld.b	$t0, $a1, 0
2:	st.b	$t0, $a0, 0
	addi.d	$a0, $a0, 1
	addi.d	$a1, $a1, 1
	addi.d	$a2, $a2, -1
	bgtz	$a2, 1b

3:	move	$a0, $a2
	jr	$ra

	_asm_extable 1b, 3b
	_asm_extable 2b, 3b