Skip to content

Commit

Permalink
MIPS: Sync icache for whole exception vector
Browse files Browse the repository at this point in the history
Rather than performing cache flushing for a fixed 0x400 bytes, use the
actual size of the vector in order to ensure we cover all emitted code
on systems that make use of vectored interrupts.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Cc: linux-mips@vger.kernel.org
  • Loading branch information
Paul Burton committed May 2, 2019
1 parent 172dcd9 commit 783454e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,7 @@ void __init trap_init(void)
else
set_handler(0x080, &except_vec3_generic, 0x80);

local_flush_icache_range(ebase, ebase + 0x400);
local_flush_icache_range(ebase, ebase + vec_size);

sort_extable(__start___dbe_table, __stop___dbe_table);

Expand Down

0 comments on commit 783454e

Please sign in to comment.