aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 6379003f9d8d..3d033e1cd4f0 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1075,8 +1075,8 @@ void *set_except_vector(int n, void *addr)
1075 1075
1076 exception_handlers[n] = handler; 1076 exception_handlers[n] = handler;
1077 if (n == 0 && cpu_has_divec) { 1077 if (n == 0 && cpu_has_divec) {
1078 *(volatile u32 *)(ebase + 0x200) = 0x08000000 | 1078 *(u32 *)(ebase + 0x200) = 0x08000000 |
1079 (0x03ffffff & (handler >> 2)); 1079 (0x03ffffff & (handler >> 2));
1080 flush_icache_range(ebase + 0x200, ebase + 0x204); 1080 flush_icache_range(ebase + 0x200, ebase + 0x204);
1081 } 1081 }
1082 return (void *)old_handler; 1082 return (void *)old_handler;