|
@@ -1721,7 +1721,7 @@ void r4k_cache_init(void)
|
|
* This code supports virtually indexed processors and will be
|
|
* This code supports virtually indexed processors and will be
|
|
* unnecessarily inefficient on physically indexed processors.
|
|
* unnecessarily inefficient on physically indexed processors.
|
|
*/
|
|
*/
|
|
- if (c->dcache.linesz)
|
|
|
|
|
|
+ if (c->dcache.linesz && cpu_has_dc_aliases)
|
|
shm_align_mask = max_t( unsigned long,
|
|
shm_align_mask = max_t( unsigned long,
|
|
c->dcache.sets * c->dcache.linesz - 1,
|
|
c->dcache.sets * c->dcache.linesz - 1,
|
|
PAGE_SIZE - 1);
|
|
PAGE_SIZE - 1);
|