diff options
Diffstat (limited to 'arch/arm/mm/copypage-v4wt.c')
-rw-r--r-- | arch/arm/mm/copypage-v4wt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mm/copypage-v4wt.c b/arch/arm/mm/copypage-v4wt.c index b8a345d6e77e..0f1188efae45 100644 --- a/arch/arm/mm/copypage-v4wt.c +++ b/arch/arm/mm/copypage-v4wt.c | |||
@@ -62,9 +62,9 @@ void v4wt_copy_user_highpage(struct page *to, struct page *from, | |||
62 | */ | 62 | */ |
63 | void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr) | 63 | void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr) |
64 | { | 64 | { |
65 | void *kaddr = kmap_atomic(page, KM_USER0); | 65 | void *ptr, *kaddr = kmap_atomic(page, KM_USER0); |
66 | asm("\ | 66 | asm volatile("\ |
67 | mov r1, %1 @ 1\n\ | 67 | mov r1, %2 @ 1\n\ |
68 | mov r2, #0 @ 1\n\ | 68 | mov r2, #0 @ 1\n\ |
69 | mov r3, #0 @ 1\n\ | 69 | mov r3, #0 @ 1\n\ |
70 | mov ip, #0 @ 1\n\ | 70 | mov ip, #0 @ 1\n\ |
@@ -76,8 +76,8 @@ void v4wt_clear_user_highpage(struct page *page, unsigned long vaddr) | |||
76 | subs r1, r1, #1 @ 1\n\ | 76 | subs r1, r1, #1 @ 1\n\ |
77 | bne 1b @ 1\n\ | 77 | bne 1b @ 1\n\ |
78 | mcr p15, 0, r2, c7, c7, 0 @ flush ID cache" | 78 | mcr p15, 0, r2, c7, c7, 0 @ flush ID cache" |
79 | : | 79 | : "=r" (ptr) |
80 | : "r" (kaddr), "I" (PAGE_SIZE / 64) | 80 | : "0" (kaddr), "I" (PAGE_SIZE / 64) |
81 | : "r1", "r2", "r3", "ip", "lr"); | 81 | : "r1", "r2", "r3", "ip", "lr"); |
82 | kunmap_atomic(kaddr, KM_USER0); | 82 | kunmap_atomic(kaddr, KM_USER0); |
83 | } | 83 | } |