diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-08-01 14:42:37 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-08-26 21:16:49 -0400 |
commit | dc0366bf3cd35e4be89f715ff834a06c590fff7a (patch) | |
tree | ab2b0b9e614d10947895656d39ae44dfc8f025a6 /arch/mips/mips-boards | |
parent | 99e480d81ca98c25918c460fdb5ca876d7df6178 (diff) |
[MIPS] SMTC: Fix secondary VPE interrupt mask initialization.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r-- | arch/mips/mips-boards/malta/malta_smtc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/mips-boards/malta/malta_smtc.c b/arch/mips/mips-boards/malta/malta_smtc.c index 0fb4c269901c..ea8f3bb8ed81 100644 --- a/arch/mips/mips-boards/malta/malta_smtc.c +++ b/arch/mips/mips-boards/malta/malta_smtc.c | |||
@@ -42,10 +42,11 @@ void prom_init_secondary(void) | |||
42 | myvpe = read_c0_tcbind() & TCBIND_CURVPE; | 42 | myvpe = read_c0_tcbind() & TCBIND_CURVPE; |
43 | if (myvpe != 0) { | 43 | if (myvpe != 0) { |
44 | /* Ideally, this should be done only once per VPE, but... */ | 44 | /* Ideally, this should be done only once per VPE, but... */ |
45 | clear_c0_status(STATUSF_IP2); | 45 | clear_c0_status(ST0_IM); |
46 | set_c0_status(STATUSF_IP0 | STATUSF_IP1 | STATUSF_IP3 | 46 | set_c0_status((0x100 << cp0_compare_irq) |
47 | | STATUSF_IP4 | STATUSF_IP5 | STATUSF_IP6 | 47 | | (0x100 << MIPS_CPU_IPI_IRQ)); |
48 | | STATUSF_IP7); | 48 | if (cp0_perfcount_irq >= 0) |
49 | set_c0_status(0x100 << cp0_perfcount_irq); | ||
49 | } | 50 | } |
50 | 51 | ||
51 | smtc_init_secondary(); | 52 | smtc_init_secondary(); |