26 v4wb_copy_user_page(
void *kto,
const void *kfrom)
29 stmfd sp!, {r4, lr} @ 2\n\
31 ldmia r1!, {r3, r4, ip, lr} @ 4\n\
32 1: mcr p15, 0, r0, c7, c6, 1 @ 1 invalidate D line\n\
33 stmia r0!, {r3, r4, ip, lr} @ 4\n\
34 ldmia r1!, {r3, r4, ip, lr} @ 4+1\n\
35 stmia r0!, {r3, r4, ip, lr} @ 4\n\
36 ldmia r1!, {r3, r4, ip, lr} @ 4\n\
37 mcr p15, 0, r0, c7, c6, 1 @ 1 invalidate D line\n\
38 stmia r0!, {r3, r4, ip, lr} @ 4\n\
39 ldmia r1!, {r3, r4, ip, lr} @ 4\n\
40 subs r2, r2, #1 @ 1\n\
41 stmia r0!, {r3, r4, ip, lr} @ 4\n\
42 ldmneia r1!, {r3, r4, ip, lr} @ 4\n\
44 mcr p15, 0, r1, c7, c10, 4 @ 1 drain WB\n\
45 ldmfd sp!, {r4, pc} @ 3"
47 :
"r" (kto),
"r" (kfrom),
"I" (
PAGE_SIZE / 64));
58 v4wb_copy_user_page(kto, kfrom);
77 1: mcr p15, 0, %0, c7, c6, 1 @ 1 invalidate D line\n\
78 stmia %0!, {r2, r3, ip, lr} @ 4\n\
79 stmia %0!, {r2, r3, ip, lr} @ 4\n\
80 mcr p15, 0, %0, c7, c6, 1 @ 1 invalidate D line\n\
81 stmia %0!, {r2, r3, ip, lr} @ 4\n\
82 stmia %0!, {r2, r3, ip, lr} @ 4\n\
83 subs r1, r1, #1 @ 1\n\
85 mcr p15, 0, r1, c7, c10, 4 @ 1 drain WB"
88 :
"r1",
"r2",
"r3",
"ip",
"lr");