OSDN Git Service

MIPS: Sync icache for whole exception vector
authorPaul Burton <paul.burton@mips.com>
Tue, 30 Apr 2019 22:53:31 +0000 (22:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 2 May 2019 18:20:59 +0000 (11:20 -0700)
commit783454e2bc7ce491b5cd50154433cde993bfd849
tree3b8906fb5290e2a80dfefa92f5b5ccb3e70d2299
parent172dcd935c34b022729f45a7bbaae5cc05231533
MIPS: Sync icache for whole exception vector

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
arch/mips/kernel/traps.c