diff options
Diffstat (limited to 'arch/frv/mm')
-rw-r--r-- | arch/frv/mm/cache-page.c | 8 | ||||
-rw-r--r-- | arch/frv/mm/highmem.c | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/arch/frv/mm/cache-page.c b/arch/frv/mm/cache-page.c index b24ade27a0f0..8e09dae0ec3f 100644 --- a/arch/frv/mm/cache-page.c +++ b/arch/frv/mm/cache-page.c | |||
@@ -26,11 +26,11 @@ void flush_dcache_page(struct page *page) | |||
26 | 26 | ||
27 | dampr2 = __get_DAMPR(2); | 27 | dampr2 = __get_DAMPR(2); |
28 | 28 | ||
29 | vaddr = kmap_atomic_primary(page, __KM_CACHE); | 29 | vaddr = kmap_atomic_primary(page); |
30 | 30 | ||
31 | frv_dcache_writeback((unsigned long) vaddr, (unsigned long) vaddr + PAGE_SIZE); | 31 | frv_dcache_writeback((unsigned long) vaddr, (unsigned long) vaddr + PAGE_SIZE); |
32 | 32 | ||
33 | kunmap_atomic_primary(vaddr, __KM_CACHE); | 33 | kunmap_atomic_primary(vaddr); |
34 | 34 | ||
35 | if (dampr2) { | 35 | if (dampr2) { |
36 | __set_DAMPR(2, dampr2); | 36 | __set_DAMPR(2, dampr2); |
@@ -54,12 +54,12 @@ void flush_icache_user_range(struct vm_area_struct *vma, struct page *page, | |||
54 | 54 | ||
55 | dampr2 = __get_DAMPR(2); | 55 | dampr2 = __get_DAMPR(2); |
56 | 56 | ||
57 | vaddr = kmap_atomic_primary(page, __KM_CACHE); | 57 | vaddr = kmap_atomic_primary(page); |
58 | 58 | ||
59 | start = (start & ~PAGE_MASK) | (unsigned long) vaddr; | 59 | start = (start & ~PAGE_MASK) | (unsigned long) vaddr; |
60 | frv_cache_wback_inv(start, start + len); | 60 | frv_cache_wback_inv(start, start + len); |
61 | 61 | ||
62 | kunmap_atomic_primary(vaddr, __KM_CACHE); | 62 | kunmap_atomic_primary(vaddr); |
63 | 63 | ||
64 | if (dampr2) { | 64 | if (dampr2) { |
65 | __set_DAMPR(2, dampr2); | 65 | __set_DAMPR(2, dampr2); |
diff --git a/arch/frv/mm/highmem.c b/arch/frv/mm/highmem.c index 31902c9d5be5..bed9a9bd3c10 100644 --- a/arch/frv/mm/highmem.c +++ b/arch/frv/mm/highmem.c | |||
@@ -50,11 +50,11 @@ void *kmap_atomic(struct page *page) | |||
50 | /* | 50 | /* |
51 | * The first 4 primary maps are reserved for architecture code | 51 | * The first 4 primary maps are reserved for architecture code |
52 | */ | 52 | */ |
53 | case 0: return __kmap_atomic_primary(4, paddr, 6); | 53 | case 0: return __kmap_atomic_primary(0, paddr, 6); |
54 | case 1: return __kmap_atomic_primary(5, paddr, 7); | 54 | case 1: return __kmap_atomic_primary(0, paddr, 7); |
55 | case 2: return __kmap_atomic_primary(6, paddr, 8); | 55 | case 2: return __kmap_atomic_primary(0, paddr, 8); |
56 | case 3: return __kmap_atomic_primary(7, paddr, 9); | 56 | case 3: return __kmap_atomic_primary(0, paddr, 9); |
57 | case 4: return __kmap_atomic_primary(8, paddr, 10); | 57 | case 4: return __kmap_atomic_primary(0, paddr, 10); |
58 | 58 | ||
59 | case 5 ... 5 + NR_TLB_LINES - 1: | 59 | case 5 ... 5 + NR_TLB_LINES - 1: |
60 | return __kmap_atomic_secondary(type - 5, paddr); | 60 | return __kmap_atomic_secondary(type - 5, paddr); |
@@ -70,11 +70,11 @@ void __kunmap_atomic(void *kvaddr) | |||
70 | { | 70 | { |
71 | int type = kmap_atomic_idx(); | 71 | int type = kmap_atomic_idx(); |
72 | switch (type) { | 72 | switch (type) { |
73 | case 0: __kunmap_atomic_primary(4, 6); break; | 73 | case 0: __kunmap_atomic_primary(0, 6); break; |
74 | case 1: __kunmap_atomic_primary(5, 7); break; | 74 | case 1: __kunmap_atomic_primary(0, 7); break; |
75 | case 2: __kunmap_atomic_primary(6, 8); break; | 75 | case 2: __kunmap_atomic_primary(0, 8); break; |
76 | case 3: __kunmap_atomic_primary(7, 9); break; | 76 | case 3: __kunmap_atomic_primary(0, 9); break; |
77 | case 4: __kunmap_atomic_primary(8, 10); break; | 77 | case 4: __kunmap_atomic_primary(0, 10); break; |
78 | 78 | ||
79 | case 5 ... 5 + NR_TLB_LINES - 1: | 79 | case 5 ... 5 + NR_TLB_LINES - 1: |
80 | __kunmap_atomic_secondary(type - 5, kvaddr); | 80 | __kunmap_atomic_secondary(type - 5, kvaddr); |