projects
/
librecmc
/
linux-libre.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Linux-libre 5.4.49-gnu
[librecmc/linux-libre.git]
/
tools
/
testing
/
selftests
/
powerpc
/
copyloops
/
copy_tofrom_user_reference.S
1
#include <asm/ppc_asm.h>
2
3
_GLOBAL(copy_tofrom_user_reference)
4
cmpdi r5,0
5
beq 4f
6
7
mtctr r5
8
9
1: lbz r6,0(r4)
10
2: stb r6,0(r3)
11
addi r3,r3,1
12
addi r4,r4,1
13
bdnz 1b
14
15
3: mfctr r3
16
blr
17
18
4: mr r3,r5
19
blr
20
21
.section __ex_table,"a"
22
.llong 1b,3b
23
.llong 2b,3b
24
.text