Use the userspace cache flushing functions if the interrupted
process is a userspace one.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
}
if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) {
}
if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) {
- r4k_blast_dcache_page(addr);
+ vaddr ? r4k_blast_dcache_page(addr) :
+ r4k_blast_dcache_user_page(addr);
if (exec && !cpu_icache_snoops_remote_store)
r4k_blast_scache_page(addr);
}
if (exec && !cpu_icache_snoops_remote_store)
r4k_blast_scache_page(addr);
}
if (cpu_context(cpu, mm) != 0)
drop_mmu_context(mm, cpu);
} else
if (cpu_context(cpu, mm) != 0)
drop_mmu_context(mm, cpu);
} else
- r4k_blast_icache_page(addr);
+ vaddr ? r4k_blast_icache_page(addr) :
+ r4k_blast_icache_user_page(addr);