On 26/05/15 23:25, Petri Gynther wrote: > bmips_wr_vec() copies exception vector code from start to dst. > > The call to dma_cache_wback() needs to flush (end-start) bytes, > starting at dst, from write-back cache to memory. > > Signed-off-by: Petri Gynther <pgynther@xxxxxxxxxx> Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx> Fixes: df0ac8a406718 ("MIPS: BMIPS: Add SMP support code for BMIPS43xx/BMIPS5000") CC: stable@xxxxxxxxxxxxxxx # 3.4+ > --- > arch/mips/kernel/smp-bmips.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/kernel/smp-bmips.c b/arch/mips/kernel/smp-bmips.c > index fd528d7..336708a 100644 > --- a/arch/mips/kernel/smp-bmips.c > +++ b/arch/mips/kernel/smp-bmips.c > @@ -444,7 +444,7 @@ struct plat_smp_ops bmips5000_smp_ops = { > static void bmips_wr_vec(unsigned long dst, char *start, char *end) > { > memcpy((void *)dst, start, end - start); > - dma_cache_wback((unsigned long)start, end - start); > + dma_cache_wback(dst, end - start); > local_flush_icache_range(dst, dst + (end - start)); > instruction_hazard(); > } > -- Florian