diff options
Diffstat (limited to 'arch/sh/mm/cache-sh4.c')
-rw-r--r-- | arch/sh/mm/cache-sh4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 6bfd08d5fb81..f36a08bf3d5c 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c | |||
@@ -98,7 +98,7 @@ static inline void flush_cache_one(unsigned long start, unsigned long phys) | |||
98 | exec_offset = cached_to_uncached; | 98 | exec_offset = cached_to_uncached; |
99 | 99 | ||
100 | local_irq_save(flags); | 100 | local_irq_save(flags); |
101 | __flush_cache_one(start | SH_CACHE_ASSOC, phys, exec_offset); | 101 | __flush_cache_one(start, phys, exec_offset); |
102 | local_irq_restore(flags); | 102 | local_irq_restore(flags); |
103 | } | 103 | } |
104 | 104 | ||
@@ -123,7 +123,7 @@ static void sh4_flush_dcache_page(void *arg) | |||
123 | 123 | ||
124 | /* Loop all the D-cache */ | 124 | /* Loop all the D-cache */ |
125 | n = boot_cpu_data.dcache.n_aliases; | 125 | n = boot_cpu_data.dcache.n_aliases; |
126 | for (i = 0; i <= n; i++, addr += PAGE_SIZE) | 126 | for (i = 0; i < n; i++, addr += PAGE_SIZE) |
127 | flush_cache_one(addr, phys); | 127 | flush_cache_one(addr, phys); |
128 | } | 128 | } |
129 | 129 | ||