Sign in
android-kvm
/
linux
/
9614369a042a3a345ef7e2997c277aa8a271b8a0
/
.
/
tools
/
testing
/
selftests
/
powerpc
/
copyloops
/
copy_tofrom_user_reference.S
blob: 3363b86407d6f4d1d54330d8769139c890b0a375 [
file
] [
log
] [
blame
]
#include <asm/ppc_asm.h>
_GLOBAL
(
copy_tofrom_user_reference
)
cmpdi r5
,
0
beq
4
f
mtctr r5
1
:
lbz r6
,
0
(
r4
)
2
:
stb r6
,
0
(
r3
)
addi r3
,
r3
,
1
addi r4
,
r4
,
1
bdnz
1
b
3
:
mfctr r3
blr
4
:
mr r3
,
r5
blr
.section __ex_table
,
"a"
.llong
1
b
,
3
b
.llong
2
b
,
3
b
.text