Commit dc0366bf authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] SMTC: Fix secondary VPE interrupt mask initialization.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 99e480d8
...@@ -42,10 +42,11 @@ void prom_init_secondary(void) ...@@ -42,10 +42,11 @@ void prom_init_secondary(void)
myvpe = read_c0_tcbind() & TCBIND_CURVPE; myvpe = read_c0_tcbind() & TCBIND_CURVPE;
if (myvpe != 0) { if (myvpe != 0) {
/* Ideally, this should be done only once per VPE, but... */ /* Ideally, this should be done only once per VPE, but... */
clear_c0_status(STATUSF_IP2); clear_c0_status(ST0_IM);
set_c0_status(STATUSF_IP0 | STATUSF_IP1 | STATUSF_IP3 set_c0_status((0x100 << cp0_compare_irq)
| STATUSF_IP4 | STATUSF_IP5 | STATUSF_IP6 | (0x100 << MIPS_CPU_IPI_IRQ));
| STATUSF_IP7); if (cp0_perfcount_irq >= 0)
set_c0_status(0x100 << cp0_perfcount_irq);
} }
smtc_init_secondary(); smtc_init_secondary();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment