Skip to content

Commit

Permalink
[XTENSA] Fix cache flush macro for D$/I$ aliasing/non-aliasing
Browse files Browse the repository at this point in the history
For configurations that have aliasing in the data cache but
not in the instruction cache, we don't need to flush the
instruction cache. Thus, we didn't define the macros to
flush the instruction cache. Some cache-flush functions,
howerver, were using those macros.

Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Chris Zankel committed Feb 14, 2008
1 parent 6792625 commit 9f8fcf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-xtensa/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ extern void __flush_invalidate_dcache_page_alias(unsigned long, unsigned long);
#endif
#if (ICACHE_WAY_SIZE > PAGE_SIZE)
extern void __invalidate_icache_page_alias(unsigned long, unsigned long);
#else
# define __invalidate_icache_page_alias(v,p) do { } while(0)
#endif

/*
Expand Down

0 comments on commit 9f8fcf3

Please sign in to comment.