summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorLey Foon Tan <lftan@altera.com>2015-04-15 10:45:49 +0800
committerLey Foon Tan <lftan@altera.com>2015-04-20 10:52:06 +0800
commit170c381f6bcd9ad3235654988aabddb612b34a39 (patch)
tree0b690e6b196ad27eb3044cfa6b631bf3cbca01cd /arch/nios2
parent39a8804455fb23f09157341d3ba7db6d7ae6ee76 (diff)
downloadop-kernel-dev-170c381f6bcd9ad3235654988aabddb612b34a39.zip
op-kernel-dev-170c381f6bcd9ad3235654988aabddb612b34a39.tar.gz
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>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/mm/cacheflush.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/nios2/mm/cacheflush.c b/arch/nios2/mm/cacheflush.c
index 7966429..a09b2b7 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 */
OpenPOWER on IntegriCloud