diff options
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r-- | arch/mips/kernel/traps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 48c8b2597142..44f0a2c11807 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -11,6 +11,7 @@ | |||
11 | * Copyright (C) 2000, 01 MIPS Technologies, Inc. | 11 | * Copyright (C) 2000, 01 MIPS Technologies, Inc. |
12 | * Copyright (C) 2002, 2003, 2004, 2005 Maciej W. Rozycki | 12 | * Copyright (C) 2002, 2003, 2004, 2005 Maciej W. Rozycki |
13 | */ | 13 | */ |
14 | #include <linux/bug.h> | ||
14 | #include <linux/init.h> | 15 | #include <linux/init.h> |
15 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
16 | #include <linux/module.h> | 17 | #include <linux/module.h> |
@@ -1190,8 +1191,8 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs) | |||
1190 | 1191 | ||
1191 | memcpy (b, &except_vec_vi, handler_len); | 1192 | memcpy (b, &except_vec_vi, handler_len); |
1192 | #ifdef CONFIG_MIPS_MT_SMTC | 1193 | #ifdef CONFIG_MIPS_MT_SMTC |
1193 | if (n > 7) | 1194 | BUG_ON(n > 7); /* Vector index %d exceeds SMTC maximum. */ |
1194 | printk("Vector index %d exceeds SMTC maximum\n", n); | 1195 | |
1195 | w = (u32 *)(b + mori_offset); | 1196 | w = (u32 *)(b + mori_offset); |
1196 | *w = (*w & 0xffff0000) | (0x100 << n); | 1197 | *w = (*w & 0xffff0000) | (0x100 << n); |
1197 | #endif /* CONFIG_MIPS_MT_SMTC */ | 1198 | #endif /* CONFIG_MIPS_MT_SMTC */ |