diff options
-rw-r--r-- | arch/nios2/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/nios2/mm/cacheflush.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/arch/nios2/kernel/entry.S b/arch/nios2/kernel/entry.S index 7729bd3f2e79..27b006c52e12 100644 --- a/arch/nios2/kernel/entry.S +++ b/arch/nios2/kernel/entry.S | |||
@@ -161,7 +161,7 @@ ENTRY(inthandler) | |||
161 | *********************************************************************** | 161 | *********************************************************************** |
162 | */ | 162 | */ |
163 | ENTRY(handle_trap) | 163 | ENTRY(handle_trap) |
164 | ldw r24, -4(ea) /* instruction that caused the exception */ | 164 | ldwio r24, -4(ea) /* instruction that caused the exception */ |
165 | srli r24, r24, 4 | 165 | srli r24, r24, 4 |
166 | andi r24, r24, 0x7c | 166 | andi r24, r24, 0x7c |
167 | movia r9,trap_table | 167 | movia r9,trap_table |
diff --git a/arch/nios2/mm/cacheflush.c b/arch/nios2/mm/cacheflush.c index 2ae482b42669..796642932e2e 100644 --- a/arch/nios2/mm/cacheflush.c +++ b/arch/nios2/mm/cacheflush.c | |||
@@ -23,9 +23,6 @@ static void __flush_dcache(unsigned long start, unsigned long end) | |||
23 | end += (cpuinfo.dcache_line_size - 1); | 23 | end += (cpuinfo.dcache_line_size - 1); |
24 | end &= ~(cpuinfo.dcache_line_size - 1); | 24 | end &= ~(cpuinfo.dcache_line_size - 1); |
25 | 25 | ||
26 | if (end > start + cpuinfo.dcache_size) | ||
27 | end = start + cpuinfo.dcache_size; | ||
28 | |||
29 | for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { | 26 | for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { |
30 | __asm__ __volatile__ (" flushda 0(%0)\n" | 27 | __asm__ __volatile__ (" flushda 0(%0)\n" |
31 | : /* Outputs */ | 28 | : /* Outputs */ |