Skip to content

Commit

Permalink
nios2: remove end address checking for initda
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ley Foon Tan committed Apr 20, 2015
1 parent 39a8804 commit 170c381
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/nios2/mm/cacheflush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 170c381

Please sign in to comment.