Skip to content

Commit

Permalink
[MIPS] MT: Initialise all writable bits in Cause register to zero.
Browse files Browse the repository at this point in the history
Recent 34Ks come out of reset with WP enabled on VPE 1 so we take an
immediate exception when starting the second VPE.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Chris Dearman authored and Ralf Baechle committed Sep 27, 2006
1 parent bca70d2 commit 847b9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/smp-mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void plat_smp_setup(void)
write_vpe_c0_config( read_c0_config());

/* make sure there are no software interrupts pending */
write_vpe_c0_cause(read_vpe_c0_cause() & ~(C_SW1|C_SW0));
write_vpe_c0_cause(0);

/* Propagate Config7 */
write_vpe_c0_config7(read_c0_config7());
Expand Down

0 comments on commit 847b9df

Please sign in to comment.