From 170c381f6bcd9ad3235654988aabddb612b34a39 Mon Sep 17 00:00:00 2001 From: Ley Foon Tan Date: Wed, 15 Apr 2015 10:45:49 +0800 Subject: nios2: remove end address checking for initda Remove the end address checking for initda function. We need to invalidate each address line for initda instruction, from start to end address. Signed-off-by: Ley Foon Tan --- arch/nios2/mm/cacheflush.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'arch/nios2') diff --git a/arch/nios2/mm/cacheflush.c b/arch/nios2/mm/cacheflush.c index 796642932e2e..a09b2b735803 100644 --- a/arch/nios2/mm/cacheflush.c +++ b/arch/nios2/mm/cacheflush.c @@ -58,9 +58,6 @@ static void __invalidate_dcache(unsigned long start, unsigned long end) end += (cpuinfo.dcache_line_size - 1); end &= ~(cpuinfo.dcache_line_size - 1); - if (end > start + cpuinfo.dcache_size) - end = start + cpuinfo.dcache_size; - for (addr = start; addr < end; addr += cpuinfo.dcache_line_size) { __asm__ __volatile__ (" initda 0(%0)\n" : /* Outputs */ -- cgit v1.2.1