diff options
Diffstat (limited to 'arch/arm/mm/copypage-v4wt.c')
-rw-r--r-- | arch/arm/mm/copypage-v4wt.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mm/copypage-v4wt.c b/arch/arm/mm/copypage-v4wt.c index 86c2cfdbde03..b8a345d6e77e 100644 --- a/arch/arm/mm/copypage-v4wt.c +++ b/arch/arm/mm/copypage-v4wt.c | |||
@@ -60,29 +60,29 @@ void v4wt_copy_user_highpage(struct page *to, struct page *from, | |||
60 | * | 60 | * |
61 | * Same story as above. | 61 | * Same story as above. |
62 | */ | 62 | */ |
63 | void __attribute__((naked)) | 63 | void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr) |
64 | v4wt_clear_user_page(void *kaddr, unsigned long vaddr) | ||
65 | { | 64 | { |
65 | void *kaddr = kmap_atomic(page, KM_USER0); | ||
66 | asm("\ | 66 | asm("\ |
67 | str lr, [sp, #-4]!\n\ | 67 | mov r1, %1 @ 1\n\ |
68 | mov r1, %0 @ 1\n\ | ||
69 | mov r2, #0 @ 1\n\ | 68 | mov r2, #0 @ 1\n\ |
70 | mov r3, #0 @ 1\n\ | 69 | mov r3, #0 @ 1\n\ |
71 | mov ip, #0 @ 1\n\ | 70 | mov ip, #0 @ 1\n\ |
72 | mov lr, #0 @ 1\n\ | 71 | mov lr, #0 @ 1\n\ |
73 | 1: stmia r0!, {r2, r3, ip, lr} @ 4\n\ | 72 | 1: stmia %0!, {r2, r3, ip, lr} @ 4\n\ |
74 | stmia r0!, {r2, r3, ip, lr} @ 4\n\ | 73 | stmia %0!, {r2, r3, ip, lr} @ 4\n\ |
75 | stmia r0!, {r2, r3, ip, lr} @ 4\n\ | 74 | stmia %0!, {r2, r3, ip, lr} @ 4\n\ |
76 | stmia r0!, {r2, r3, ip, lr} @ 4\n\ | 75 | stmia %0!, {r2, r3, ip, lr} @ 4\n\ |
77 | subs r1, r1, #1 @ 1\n\ | 76 | subs r1, r1, #1 @ 1\n\ |
78 | bne 1b @ 1\n\ | 77 | bne 1b @ 1\n\ |
79 | mcr p15, 0, r2, c7, c7, 0 @ flush ID cache\n\ | 78 | mcr p15, 0, r2, c7, c7, 0 @ flush ID cache" |
80 | ldr pc, [sp], #4" | ||
81 | : | 79 | : |
82 | : "I" (PAGE_SIZE / 64)); | 80 | : "r" (kaddr), "I" (PAGE_SIZE / 64) |
81 | : "r1", "r2", "r3", "ip", "lr"); | ||
82 | kunmap_atomic(kaddr, KM_USER0); | ||
83 | } | 83 | } |
84 | 84 | ||
85 | struct cpu_user_fns v4wt_user_fns __initdata = { | 85 | struct cpu_user_fns v4wt_user_fns __initdata = { |
86 | .cpu_clear_user_page = v4wt_clear_user_page, | 86 | .cpu_clear_user_highpage = v4wt_clear_user_highpage, |
87 | .cpu_copy_user_highpage = v4wt_copy_user_highpage, | 87 | .cpu_copy_user_highpage = v4wt_copy_user_highpage, |
88 | }; | 88 | }; |