Просмотр исходного кода

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 <lftan@altera.com>
Ley Foon Tan 10 лет назад
Родитель
Сommit
170c381f6b
1 измененных файлов с 0 добавлено и 3 удалено
  1. 0 3
      arch/nios2/mm/cacheflush.c

+ 0 - 3
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 */